Node.js, Express & REST APIs
Run JavaScript on the server, design predictable REST endpoints, validate untrusted input, and persist data safely.
Modern modules, async/await, HTTP basics, and a firm grasp of objects and validation.
Run JavaScript on Node, design REST resources, validate untrusted input, separate persistence from routes, and apply baseline API security.
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.
- 16.01Node.js Runtime & npm4 min
Move JavaScript to the server, organise a project with modules and npm scripts, and load configuration without hard-coding secrets.
- 16.02HTTP Servers & Routing4 min
Build a server with node:http, read requests, send correct status codes and headers, and handle routing and failures without a framework.
- 16.03Express REST APIs4 min
Use Express to build a resource-oriented API with route parameters, middleware, validation, and one consistent error format.
- 16.04Persistence, Auth & Security4 min
Separate storage from routes, hash passwords correctly, compare sessions with tokens, and apply a practical security baseline.
- 16.05Project: Bookstore REST APIProject4 min
Build a complete Express API with CRUD routes, validation, atomic JSON persistence, consistent errors, and a README.
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