This is the starter code for the lecture on AJAX and HTTP requests for CCAPDEV, AY2019-2020, Term 2.
At the end of the exercise, you should be able to:
- Use AJAX to execute GET and POST HTTP requests
- Retreive (dummy) data from the server to be displayed on the client
- Update the client view with new data entered through form submission
- NodeJS & npm
- Any text editor for JavaScript, HTML & CSS
- Clone this repository:
git clone https://github.com/unisse-courses/node-ajax-starter.git
- Navigate to the directory:
cd node-ajax-starter
- Install the dependencies:
npm install
- Run the server:
node index.js
- Navigate to
http://localhost:9090/
in the browser to view the app. - Expected screen should be a form and a blank Students List
- Navigate to
To stop the server, simply key in CTRL+C
(Windows) or control (^) + C
(Mac).
Note: This repository will only allow you to clone and pull the code provided here. To be able to push changes, you need to fork this repository to your account and that will allow you to keep a personal copy of any changes you may have.
After cloning this repository, follow along with the video on Canvas to be able to complete the exercise.
All names and data are not real or are not associated with any person.