MODULE 16 · ADVANCED

Node.js, Express & REST APIsJavaScript Mastery · Module 16

Run JavaScript on the server, design predictable REST endpoints, validate untrusted input, and persist data safely.

5 lessons20 min readingBuild, test, and ship production systems1 project
Free, self-paced, and open to everyone. No account needed.
WHAT THIS MODULE COVERS

Node.js, Express & REST APIs

Run JavaScript on the server, design predictable REST endpoints, validate untrusted input, and persist data safely.

BEFORE YOU START

Modern modules, async/await, HTTP basics, and a firm grasp of objects and validation.

WHAT YOU’LL BE ABLE TO DO

Run JavaScript on Node, design REST resources, validate untrusted input, separate persistence from routes, and apply baseline API security.

THE LESSON SEQUENCE

Read in order, or jump to what you need.

Every lesson builds on the one before it. Open any lesson to read the explanation, run the examples, and try the practice challenges.

  1. 16.01
    Node.js Runtime & npm

    Move JavaScript to the server, organise a project with modules and npm scripts, and load configuration without hard-coding secrets.

    4 min
  2. 16.02
    HTTP Servers & Routing

    Build a server with node:http, read requests, send correct status codes and headers, and handle routing and failures without a framework.

    4 min
  3. 16.03
    Express REST APIs

    Use Express to build a resource-oriented API with route parameters, middleware, validation, and one consistent error format.

    4 min
  4. 16.04
    Persistence, Auth & Security

    Separate storage from routes, hash passwords correctly, compare sessions with tokens, and apply a practical security baseline.

    4 min
  5. 16.05
    Project: Bookstore REST APIProject

    Build a complete Express API with CRUD routes, validation, atomic JSON persistence, consistent errors, and a README.

    4 min
MODULE SELF-CHECK

Ready to move on?

Ship a validated Bookstore API with CRUD routes, consistent errors, persistence, a health endpoint, and a README a teammate can follow.

Open the module self-check