JavaScript Programming/Node.js REST API

This lesson introduces Node.js, Express.js and REST APIs.

Objectives and Skills
Objectives and skills for this lesson include:
 * Understand Node.js concepts
 * Understand Express.js concepts
 * Use Node.js and Express.js to implement a simple REST API

Readings

 * 1)  Node.js
 * 2)  Express.js
 * 3)  REST API

Examples

 * W3Schools: Node.js Tutorial
 * W3Schools: RESTful Web Services
 * /Hello World/
 * /REST API/

Activities

 * 1) Install Node.js
 * 2) * Review Medium: Building a simple REST API with NodeJS and Express.
 * 3) * Download and install Node.js
 * 4) * Use a command prompt or terminal window to verify Node.js installation:
 * 5) Configure and test Express.js
 * 6) * Create a new folder for your REST server application. In that folder, run the following command to generate an Express.js template:
 * 7) * Install Express and CORS using the following commands:
 * 8) * Copy the /Hello World/ example code to create a simple Express.js website.
 * 9) * Start the website using the command:
 * 10) * Test your server by using your web browser to navigate to:
 * 11) Create a simple REST API
 * 12) * Copy the /REST API/ example code to create a REST API website.
 * 13) * Start the website using the command:
 * 14) * Revise your JavaScript Programming/AJAX and JSON project to send data to your Express.js server.

Lesson Summary

 * Bullet points

Key Terms

 * term
 * definition