AN ORDERED STUDY PLAN
NestJS learning roadmap.
Learn dependency injection, validation, and application structure. Work through 5 modules, then use the connected questions to check what you can explain without the notes.
- STEP 1
Modules & dependency injection
- What are modules, controllers and services? · 2 min
- Dependency injection · 2 min
- Why does Nest say it cannot resolve a dependency? · 2 min
- What are custom providers and provider scopes? · 2 min
- Dynamic module vs global module? · 2 min
Checkpoint: explain the ideas above with an example and a limitation before continuing.
- STEP 2
Request lifecycle
- What is the Nest request lifecycle? · 2 min
- How do global, controller and route handlers interact? · 2 min
- Guard vs pipe vs interceptor vs filter? · 2 min
Checkpoint: explain the ideas above with an example and a limitation before continuing.
- STEP 3
Validation & authorization
Checkpoint: explain the ideas above with an example and a limitation before continuing.
- STEP 4
Database integration
- TypeORM vs Sequelize vs Mongoose? · 2 min
- Repository vs QueryBuilder vs raw SQL? · 2 min
- How should a TypeORM transaction work? · 2 min
- What are N+1, eager loading and lazy loading? · 2 min
- Why use migrations instead of automatic schema sync? · 2 min
Checkpoint: explain the ideas above with an example and a limitation before continuing.
- STEP 5
Background work & deployment
- How should Nest handle jobs and scheduled tasks? · 2 min
- What are WebSockets, microservices and CQRS used for? · 2 min
- How do I test and deploy a Nest app? · 2 min
Checkpoint: explain the ideas above with an example and a limitation before continuing.
Check your understanding
After the lessons, rehearse the 18 connected questions. Revisit the lesson when you cannot yet explain why the answer works.
Practice NestJS Review the interview guide