Document content is changed based on AJAX requests in a browser.
-
Move ajax_people.js to folder called 'assets'
-
Move .json files to folder called 'json'
-
Start the server with node people_server.js
-
Note that you need to install node-static with npm install node-static in the same directory before running the server
-
Visiting http://localhost:3000 will show the index.html
-
The content of index.html changes when one of the four links to the JSON files are clicked