RANIARANIA Academy

Building HTTP Servers & Your First REST API

Build a working REST API in Node.js from the ground up: start with the core http module, then move to Express to route requests, parse JSON bodies and return correct status codes. You will finish able to design and ship a full CRUD API over an in-memory store.

Watch the free preview

Creating an HTTP server with the http module — free to watch, no account needed.

Node.js BEGINNER · 150 min · Certificate on completion · 3 CPD points

What you'll learn

  • Build a working REST API in Node.js with Express
  • Create an HTTP server by hand with the core http module
  • Route requests by method and path and return correct status codes
  • Parse and validate JSON request bodies and send JSON responses
  • Implement full CRUD over an in-memory store the RESTful way

Syllabus

The http Module — Your First Server
Creating an HTTP server with the http moduleFree preview15 min
Reading requests and shaping responses15 min
Routing and JSON by Hand
Routing by method and path15 min
Handling JSON request bodies15 min
Introducing Express
Getting started with Express and routing15 min
The CRUD verbs and JSON bodies in Express15 min
Building a CRUD REST API
Designing REST resources and status codes15 min
A complete CRUD API over an in-memory store15 min
Lab — 10 Exercises & Solutions
Exercises 1–515 min
Exercises 6–1015 min