Welcome to Curso 101 de BackboneJS.
For install, execute the following command:
$ sudo apt install php
For run the Backbone.js App, exuecute the following steps:
For run the PHP Server, execute the following command:
$ php -S localhost:8023
Open the web browser to
Test the data source via API Get Request via Web browser
Test the data source via API Get Request using Web browser Javascript console:
Test the 1 router path
$.get('router.php/data/1', function(data){console.log(data);});
> {"id":0,"name":"Leonardo","age":35}
Test the 2 router path
$.get('router.php/data/2', function(data){console.log(data);});
> {"id":1,"name":"Ana","age":33}
Test the 3 router path
$.get('router.php/data/3', function(data){console.log(data);});
> {"id":2,"name":"Miriam","age":58}
Produced by Cristino Zamora.