/node-ajax-starter

Starter code for AJAX example

Primary LanguageHTML

NodeJS AJAX Starter Code

This is the starter code for the lecture on AJAX and HTTP requests for CCAPDEV, AY2019-2020, Term 2.

Learning Objectives

At the end of the exercise, you should be able to:

  1. Use AJAX to execute GET and POST HTTP requests
  2. Retreive (dummy) data from the server to be displayed on the client
  3. Update the client view with new data entered through form submission

Requirements

Local Setup

  1. Clone this repository: git clone https://github.com/unisse-courses/node-ajax-starter.git
  2. Navigate to the directory: cd node-ajax-starter
  3. Install the dependencies: npm install
  4. 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

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.

What to do

After cloning this repository, follow along with the video on Canvas to be able to complete the exercise.

On dummy data

All names and data are not real or are not associated with any person.