Node.js: Build and Ship an API
Exit

Lesson 5 of 14 · Servers and APIs

A native HTTP server with node:http: routes, status codes and headers

1 h Node.js 22 (Debian, git, npm, python3)

Objective

Write a small online shop API with no dependencies at all, using only the node:http module, to understand what frameworks such as Express really do: receive a request, choose a route, send back the right status code and the right headers.

This lesson is part of the full course

Unlock Node.js: Build and Ship an API to read every lesson, do the exercises, access the simulations and earn your certificate.

Already enrolled? Log in.