Skip to content
NestPath

NestPath

From Next.js brain to NestJS brain

Ten modules that build one real API — layer by layer through the request lifecycle, with drills after every concept.

10 modulesTheory + exercises in every one190+ drills100% free

The curriculum

10 modules, one living API — each module bolts a new layer of the request lifecycle onto what you built in the last.

01

Basic CRUD & Architecture

~11 min read · theory + drills
  • The mental shift from file-based routing to layered architecture: Modules, Controllers, Services, dependency injection, DTOs, and the complete request lifecycle — built into a working in-memory Tasks CRUD.
Open module
02

Validation with Pipes

~11 min read · theory + drills
  • Give your DTOs runtime teeth. class-validator + class-transformer, the ValidationPipe's three critical options, @IsOptional() mechanics, and the PartialType shortcut.
Open module
03

Exception Filters

~16 min read · theory + drills
  • One consistent error shape for every failure. The HttpException hierarchy, catch-all filters, DI-aware registration, custom domain exceptions, and never leaking internals to clients.
Open module
04

Interceptors

~17 min read · theory + drills
  • The only layer that runs before AND after your controller. Success envelopes, request timing, timeouts, RxJS map vs tap, and Russian-doll execution order.
Open module
05

Guards & Authorization

~17 min read · theory + drills
  • Who are you, and are you allowed? AuthGuard, RolesGuard, custom decorators with SetMetadata + Reflector, @Public(), @Roles(), @CurrentUser(), and 401 vs 403 done right.
Open module
06

Middleware

~20 min read · theory + drills
  • Position zero of the pipeline. Request-ID correlation logging, rate limiting, helmet, CORS, the MiddlewareConsumer API, and the definitive middleware-vs-guard decision matrix.
Open module
07

MongoDB + JWT Auth

~34 min read · theory + drills
  • The big one. JWT anatomy, access vs refresh tokens, rotation and reuse detection, Mongoose schemas, bcrypt, HttpOnly cookies, and a complete register / login / refresh / logout system.
Open module
08

Swagger / OpenAPI

~24 min read · theory + drills
  • Documentation that writes itself. The CLI plugin, bearer + cookie auth schemes, @ApiOperation and friends, composed decorators, documenting your response envelope, and locking docs out of production.
Open module
09

Testing (Unit + E2E)

~35 min read · theory + drills
  • Prove it works. Unit tests with mocked models, bcrypt and ExecutionContext fakes; E2E journeys on an in-memory MongoDB through the real AppModule; and the framework for deciding what to test where.
Open module
10

Capstone Project

~2 min read · theory + drills
  • Build a Trello-style Boards API from zero — every layer from all nine modules in one fresh project, ending with a closed-book trace exam. This is where knowing becomes owning.
Open module

Why learners stick with NestPath

The request lifecycle is the course

Middleware, guards, pipes, interceptors, filters — each module bolts one layer onto the same living API.

Real-world analogies

Every concept is explained through everyday scenarios — dependency injection as a restaurant kitchen, guards as bouncers.

Attempt first, answers second

Concept checks, guided builds, debug drills and prediction drills — with answers hidden until you commit.

Track your progress

Checkboxes, per-part completion and module checkmarks are saved in your browser — pick up right where you left off.

A structured path

From your first controller to JWT auth, Swagger and testing — every module builds on the last, ending in a capstone.

Free, no signup

Open a module and start. No account, no paywall — your progress lives in your browser.

Ready to think in NestJS?

Start with Module 01 — build the CRUD backbone everything else hangs on.

Start Learning — it's free