Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build Modern API Using Nest JS, MongoDB with Unit & E2E Test
Rating: 4.7 out of 5(36 ratings)
851 students

Build Modern API Using Nest JS, MongoDB with Unit & E2E Test

Build Modern API Using NestJS and MongoDB (TypeScript, Auth, Swagger , Unit & e2e Testing)
Created byYasir Ali
Last updated 9/2025
English
English [Auto],

What you'll learn

  • Develop a full featured API with NestJs
  • Authentication & Authorization Using best practices
  • Using Passport for Authentication
  • Building a custom guard & Protecting Routes
  • Writing Unit Tests for complete API
  • Persisting data with databases like MongoDB
  • Data Validation & Error Handling using Pipes

Course content

4 sections • 18 lectures • 1h 59m total length
  • Tools Required For building APIS2:11

    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).

  • Creating and Running First Project in NestJS6:28

    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.

  • Breaking Down the Basic NestJS Project Structure4:00

    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.

  • An Abstract overview of How Entire NestJS App is Structured6:12

    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.

Requirements

  • Knowledge of JavaScript, TypeScript, NodeJs
  • Basic knowledge of Database like MongoDB
  • Basic Knowledge of API's & how they work

Description

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!

Who this course is for:

  • Students or Professionals want to learn how to build API in NestJs
  • Anyone who want to learn backend development