< JavaScript Programming

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


  1. Wikipedia: Node.js
  2. Wikipedia: Express.js
  3. Wikipedia: REST API




  1. Install Node.js
  2. Configure and test Express.js
    • Create a new folder for your REST server application. In that folder, run the following command to generate an Express.js template:
          npm install express-generator
    • Install Express and CORS using the following commands:
          npm install express --save
          npm install cors --save
    • Copy the Hello World example code to create a simple Express.js website.
    • Start the website using the command:
          node server.js
    • Test your server by using your web browser to navigate to:
  3. Create a simple REST API

Lesson Summary

  • Bullet points

Key Terms


See Also


    This article is issued from Wikiversity. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.