Skip to content

Latest commit

 

History

History

101_course

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Curso 101 de BackboneJS

Welcome to Curso 101 de BackboneJS.

Install

For install, execute the following command:

$ sudo apt install php

Run Backbone.js App

For run the Backbone.js App, exuecute the following steps:

Backend server

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}

Copyrigth

Produced by Cristino Zamora.