NestJS Guide
A complete step-by-step NestJS guide covering the basics, advanced features, and real-world projects.
What is NestJS and Why Use It?
An introduction to NestJS — what it is, why it exists, and where it shines in building scalable backend apps.
NestJS Project Structure and CLI
Learn how to scaffold, explore, and understand the file structure of a NestJS project using the powerful CLI.
Modules, Controllers, and Providers
Learn how to organize your app with NestJS modules, route requests with controllers, and inject logic through providers.
Dependency Injection in NestJS
Understand how dependency injection works in NestJS and how it powers services, testing, and scalability.
Routing and HTTP Methods in NestJS
Learn how to define routes, use HTTP method decorators, and handle dynamic parameters in NestJS controllers.
Middleware, Guards, and Interceptors
Master NestJS middleware, guards, and interceptors to control requests, access, and execution flow.
Pipes and Custom Decorators
Learn how to use NestJS pipes to transform and validate input, and how to build reusable custom decorators.
Working with Databases (TypeORM or Prisma)
Learn how to connect NestJS to a database using TypeORM or Prisma, define models, and write clean, scalable queries.
Authentication with Passport and JWT
Learn how to secure your NestJS app using Passport strategies and JWT tokens for authentication and protected routes.
Testing in NestJS
Learn how to write unit and integration tests in NestJS using Jest and the built-in testing utilities provided by the framework.
Building a REST API
A step-by-step guide to building a modular and scalable REST API using NestJS with controllers, services, DTOs, and routing.
Building a GraphQL API
Learn how to build a GraphQL API in NestJS using decorators, resolvers, and schema-first or code-first approaches.
File Uploads and Validation
Learn how to upload files in NestJS using Multer, and combine file handling with DTO validation for secure and structured input.
NestJS + Swagger for API Docs
Automatically generate interactive API documentation for your NestJS app using the built-in Swagger module.
Deploying a NestJS App
Learn how to prepare and deploy your NestJS app to production using platforms like Heroku, Render, Vercel, or a custom server.