Sikau

Learn Project: An orders API

Build one orders API three ways: node:http, Express and NestJS.

A combined module for after Node.js and NestJS: build the café's orders backend from a raw node:http server, through Express middleware, pagination and error handling, to a NestJS service with validated DTOs, guards and honest status codes — all in one place.

Intermediate · 5 lessons · about 3 hours · free

Start Project: An orders API free: run real code in your browserright here

Continue with Google

What you will learn

Unit 1: The orders API

Raw Node, then Express, then a structured NestJS service.

  1. Day 1A server from scratchnode:http, routing by method and path, JSON responses and status codes.35 min
  2. Day 2Express: middleware and errorsA request-id middleware, validated pagination and a central error handler.40 min
  3. Day 3NestJS: the orders serviceBusiness rules in an injectable service, validated DTOs and HTTP exceptions.40 min
  4. Day 4Guards: staff and kitchen401 vs 403: who are you, and are you allowed to do this?30 min
  5. Day 5Final: the orders APIWire the controller: routes, pipes, query validation, status codes and guards.45 min

Before you start

These courses make Project: An orders API easier:

See all courses

Built with ❤️ by dibe.sh