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.
The curriculum
10 modules, one living API — each module bolts a new layer of the request lifecycle onto what you built in the last.
Basic CRUD & Architecture
- 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.
Validation with Pipes
- Give your DTOs runtime teeth. class-validator + class-transformer, the ValidationPipe's three critical options, @IsOptional() mechanics, and the PartialType shortcut.
Exception Filters
- 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.
Interceptors
- The only layer that runs before AND after your controller. Success envelopes, request timing, timeouts, RxJS map vs tap, and Russian-doll execution order.
Guards & Authorization
- Who are you, and are you allowed? AuthGuard, RolesGuard, custom decorators with SetMetadata + Reflector, @Public(), @Roles(), @CurrentUser(), and 401 vs 403 done right.
Middleware
- Position zero of the pipeline. Request-ID correlation logging, rate limiting, helmet, CORS, the MiddlewareConsumer API, and the definitive middleware-vs-guard decision matrix.
MongoDB + JWT Auth
- 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.
Swagger / OpenAPI
- 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.
Testing (Unit + E2E)
- 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.
Capstone Project
- 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.
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