
Getting Started with NestJs - Crash Course
I’ve worked with many frameworks, from lightweight to production-ready. Noticing a lack of NestJS tutorials, I created an 11-episode series teaching it step by step.
May 17, 2025
Introduction
NestJS is a progressive Node.js framework for building efficient, scalable server-side applications. In this 11-episode crash course, I cover everything you need to know about NestJs foundations to start creating APIs quickly and confidently.
The final code is in this GitHub repo.
Episode 1 - Get Started
Install NestJS, explore and get your first application running.
Episode 2 - Controllers
Learn how controllers handle incoming requests and return responses in your API.
Episode 3 - Providers
Understand providers and how they power dependency injection in NestJS applications.
Episode 4 - Modules
Discover how modules organize your application into cohesive, reusable building blocks.
Episode 5 - Middleware
Learn how to create and use middleware to handle requests before they reach controllers.
Episode 6 - Exception Filters
Handle errors gracefully with exception filters, and return consistent API responses.
Episode 7 - Pipes
Use pipes for input validation and data transformation in your routes.
Episode 8 - Guards
Protect routes and enforce permissions with guards for authentication and roles.
Episode 9 - Interceptors
Modify requests and responses, add logging, and handle cross-cutting concerns with interceptors.
Episode 10 - Custom Decorators
Create your own decorators to simplify repetitive logic in controllers and services.
Episode 11 - Request Lifecycle
Understand the complete lifecycle of a request inside a NestJS application.