
Identify and install the prerequisite tools for building RESTful APIs with Nestjs, including Node.js, VSCode, git, Postman, and MongoDB (with MongoDB Compass and community edition).
Install the nestjs cli globally, scaffold a new nest project with nest new, then run npm run start or npm run start dev for updates and view at localhost 3000.
Explore the NestJS project structure, from node_modules and package.json to the source folder and main.ts bootstrap. Learn how modules, controllers, and services organize scalable applications.
Discover how a NestJS application is structured, from app module, controller, and service to database access via an ORM or ODM (Prisma or Mongoose), handling requests and responses.
Learn to scaffold a NestJS module with a controller and service using the Nest CLI, import it into the app module, and understand module, controller, and provider relationships.
Learn how a NestJS controller handles http requests, implements get, post, put, patch, and delete endpoints, and passes data via url params and query strings using param and query decorators.
Learn to implement post requests with the body decorator in Nestjs, send JSON data, and complete CRUD operations for a restaurant API, including create, get all, and update.
Explore how NestJS controllers delegate work to services via dependency injection, handling post requests with request body and retrieving all restaurants from a service.
Connect a NestJS app to MongoDB using Mongoose, define a restaurant schema, inject the model into the service, and create a record with a database-backed API, returning 201.
Identify what a dto is and how to create a restaurant dto as a class in NestJS, using type-safe fields and preparing for validation with class-validator.
Learn to validate a restaurant DTO in Nestjs using class-validator and class-transformer, decorating fields with isString, isArray, isInt, isEmail, and applying ValidateNested with Type for nested properties.
Learn to use global validation pipes in NestJS, with class-validator and class-transformer, to validate and transform requests and provide clear user friendly messages.
Fetch all restaurant records from MongoDB and return them to the controller. Fetch a single restaurant by ID, validate existence, and throw not found if missing.
Implement delete and update endpoints in NestJS by validating a restaurant id before deleting or updating via the controller and service.
Organize your NestJS api endpoints in Postman collections, create folders, save requests with meaningful names, and share collections with teammates for clear documentation.
Set up swagger UI in nestjs to generate interactive OpenAPI documentation for REST endpoints and expose docs at the docs path.
Extend NestJS Swagger docs with decorators to add endpoint descriptions, custom responses, and example dto schemas, then view and test endpoints directly in the documentation.
Explore how to document NestJS restaurant APIs with Swagger, covering get all restaurants, get by id, delete by id, and update with optional update dto and API param usage.
Are you ready to take your backend development skills to the next level?
In this hands-on course, you’ll learn how to build a modern, production-ready REST API using NestJS and MongoDB—two of the most powerful technologies for scalable backend applications.
Whether you’re a beginner exploring backend development or an experienced developer looking to master NestJS, this course will guide you step-by-step through building robust, secure, and tested APIs.
What You’ll Learn
NestJS Fundamentals – Understand the core concepts like modules, controllers, and providers
TypeScript Best Practices – Write clean, strongly-typed, and maintainable code
MongoDB Integration – Connect, query, and manage data efficiently with Mongoose
Authentication & Authorization – Implement JWT-based authentication with refresh tokens
DTOs & Validation – Structure your APIs with data validation and error handling
Unit & e2e Testing – Write professional-grade tests to ensure your code is reliable
Real-World Project – Build a complete REST API from scratch and make it production-ready
Technologies Covered
NestJS
TypeScript
MongoDB & Mongoose
JWT Authentication
Class Validator & Pipes
Jest (Unit & e2e Testing)
By the end of this course, you’ll be able to:
Build a secure and scalable REST API with NestJS & MongoDB
Apply clean architecture principles in real projects
Write and run unit & end-to-end tests for reliability
Confidently use NestJS in real-world production applications
If you want to go from zero to professional backend developer with NestJS, this course is the perfect place to start!