HOME > Development > NestJs Build Modern APIs in NestJs with Unit Testing

NestJs Build Modern APIs in NestJs with Unit Testing

  • Development
  • May 06, 2025
SynopsisNestJs – Build Modern APIs in NestJs with Unit Testing,...
NestJs Build Modern APIs in with Unit Testing  No.1

NestJs – Build Modern APIs in NestJs with Unit Testing, available at $59.99, has an average rating of 4.7, with 98 lectures, based on 97 reviews, and has 1007 subscribers.

You will learn about Develop and full featured API with NestJs Best practices of Authentication & Authorization Data Validation & Error Handling using Pipes How to implement pagination & search How to generate coordinates of address with GeoCoder Uploading images on AWS S3 Bucket How to use Passport for authentication How to Protect Routes from unauthorized user How to build a custom decorator How to build a custom guard Using TypeORM for database interaction Persisting data with databases like MongoDB & Postgres Understand Database relationships Writing Unit Tests for complete API Writing e2e Tests How to deploy API on Heroku This course is ideal for individuals who are Anyone who want to learn how to build API in NestJs or Anyone with basic knowledge of Javascript & Typescript, wants to build API or Anyone who want to learn backend development It is particularly useful for Anyone who want to learn how to build API in NestJs or Anyone with basic knowledge of Javascript & Typescript, wants to build API or Anyone who want to learn backend development.

Enroll now: NestJs – Build Modern APIs in NestJs with Unit Testing

Summary

Title: NestJs – Build Modern APIs in NestJs with Unit Testing

Price: $59.99

Average Rating: 4.7

Number of Lectures: 98

Number of Published Lectures: 98

Number of Curriculum Items: 98

Number of Published Curriculum Objects: 98

Original Price: $19.99

Quality Status: approved

Status: Live

What You Will Learn

  • Develop and full featured API with NestJs
  • Best practices of Authentication & Authorization
  • Data Validation & Error Handling using Pipes
  • How to implement pagination & search
  • How to generate coordinates of address with GeoCoder
  • Uploading images on AWS S3 Bucket
  • How to use Passport for authentication
  • How to Protect Routes from unauthorized user
  • How to build a custom decorator
  • How to build a custom guard
  • Using TypeORM for database interaction
  • Persisting data with databases like MongoDB & Postgres
  • Understand Database relationships
  • Writing Unit Tests for complete API
  • Writing e2e Tests
  • How to deploy API on Heroku
  • Who Should Attend

  • Anyone who want to learn how to build API in NestJs
  • Anyone with basic knowledge of Javascript & Typescript, wants to build API
  • Anyone who want to learn backend development
  • Target Audiences

  • Anyone who want to learn how to build API in NestJs
  • Anyone with basic knowledge of Javascript & Typescript, wants to build API
  • Anyone who want to learn backend development
  • If you want to build a powerful API in the modern backend framework Nest Js or if you want to learn how to unit test API then welcome to this Ultimate NestJs course.

    Nest Js is a Node.js framework for building efficient, reliable, and scalable Node.js server-side applications. NestJs is a complete framework that will help us to perform everything whether it is authentication or testing a complete API, NestJs provides us with everything that we want. The architecture of NestJs is unmatchable.

    Throughout this course, we will use TypeScript which will level up our development. Typescript will help us to write neat and clean code. We will be able to find our errors and bug right on the spot.

    NestJs provides us with a lot of flexibility by providing a lot of modules, when it comes to testing, NestJs provides us with Testing Module that makes Unit testing fun. Connecting to a database whether it is Relational (SQL, POSTGRES, etc) or NoSQL (MongoDB) is just fun and can be done in one line of code.

    Really NestJs has made life a lot easier when it comes to building backend applications. The API built with this amazing framework is highly testable, scalable, loosely coupled, and easily maintainable applications.

    ===   Super Fiendly Support   ===

    If you ever get stuck in any problem, I’m here to unstuck you. I always respond as fast as I can. Because I know there’s nothing worse than getting stuck into problems, especially programming problems. So, I am always here to support you.

    Below are some points that we will cover in this course:

  • We will discuss what is NestJs and its CLI

  • Build a complete restaurant API

  • Use MongoDB to store our data

  • Add Pagination and Search in our API

  • Best practices for Error handling & Validations with PIPES

  • Generate the coordinates of the restaurant address

  • Uploading multiple images of the restaurant to AWS S3 Bucket

  • Add Jwt Authentication with Passport

  • Authorization of Roles with Guards

  • Build a CRUD Library API with Postgres & TypeORM

  • Unit Testing of complete API

  • e2e Testing to API

  • Deploying API on Heroku

  • Interested in learning this amazing NestJs framework for building your next backend API? Then Enroll now and I will see you in the course. Happy Coding!!!

    Course Curriculum

    Chapter 1: Introduction

    Lecture 1: Introduction to the Course

    Lecture 2: DEMO of API

    Lecture 3: What is Nest.js & Why we need it?

    Lecture 4: How to Follow the Course & Code?

    Chapter 2: Setting up Environment

    Lecture 1: Installing all required tools

    Chapter 3: Setup / Overview of Nest.js

    Lecture 1: Installing Nest CLI & Creating app

    Lecture 2: Understanding the folder structure

    Lecture 3: Nest.js Modules

    Lecture 4: Nest.js Controllers

    Lecture 5: Nest.js Service & Providers

    Lecture 6: Connecting to MongoDB with mongoose

    Chapter 4: Let’s start Restaurant API with Nest

    Lecture 1: Creating Restaurant Schema

    Lecture 2: Get all Restaurants

    Lecture 3: Create a new Restaurant

    Lecture 4: What is DTO?

    Lecture 5: Creating a Restaurant DTO

    Lecture 6: Get Restaurant by ID

    Lecture 7: Update Restaurant by ID

    Lecture 8: Delete Restaurant

    Chapter 5: Adding Search & Pagination to API

    Lecture 1: Adding Search

    Lecture 2: Adding Pagination

    Chapter 6: Validation, Pipes & Error Handling

    Lecture 1: What are Pipes?

    Lecture 2: Using Validation Pipe Globally

    Lecture 3: Adding Validation Rules in Update DTO

    Lecture 4: Invalid Mongoose ID Error

    Chapter 7: Generating Restaurant Location

    Lecture 1: What is GeoCoder

    Lecture 2: Generating Coordinates & Address

    Lecture 3: Saving Location in Restaurants

    Chapter 8: Upload Restaurant Images to AWS S3

    Lecture 1: Create Bucket on S3

    Lecture 2: Getting files through File Intercepter

    Lecture 3: Uploading images to S3

    Lecture 4: Saving Images in Restaurant

    Lecture 5: Delete Restaurant Images

    Chapter 9: Authentication with Passport JWT

    Lecture 1: Generating Auth Module

    Lecture 2: Creating User Schema

    Lecture 3: Sign up DTO with Validators

    Lecture 4: User Sign up

    Lecture 5: Hash user password while Sign up

    Lecture 6: Handle Duplicate Email Error

    Lecture 7: Login User

    Lecture 8: Setting Up JWT & Passport

    Lecture 9: Sign JWT token on Login

    Chapter 10: Protecting Routes with Guards & Custom Decorators

    Lecture 1: Setting Up JWT Strategy

    Lecture 2: Using AuthGuard to Protect Routes

    Lecture 3: Current User Decorator

    Lecture 4: Saving Current User in Restaurant

    Lecture 5: Creating User Roles Guard

    Lecture 6: Roles Decorator

    Lecture 7: Authorize Restaurant Ownership

    Chapter 11: Adding Meals in Restaurant

    Lecture 1: Creating Meal Model

    Lecture 2: Create Meal DTO

    Lecture 3: Creating a Meal

    Lecture 4: Getting all Meals

    Lecture 5: Get Meal by ID

    Lecture 6: Update Meal

    Lecture 7: Delete Meal

    Chapter 12: Library API with TypeORM & Postgres

    Lecture 1: Create Library Project

    Lecture 2: Install & Setup Postgres & pgAdmin

    Lecture 3: Connecting to Postgres Database

    Lecture 4: Create Book Entity

    Lecture 5: Create new Book

    Lecture 6: Get all Books & Book by ID

    Lecture 7: Update Book

    Lecture 8: Delete Book

    Chapter 13: Database Relationships

    Lecture 1: Relations & Types of relations

    Lecture 2: Create User Entity

    Lecture 3: Adding Books & User Relation (OneToMany & ManyToOne)

    Chapter 14: Unit Testing Restaurant API – Part 1

    Lecture 1: What is Unit Testing?

    Lecture 2: Write first unit test in Restaurant Service

    Lecture 3: Testing RestaurantsService – findAll

    Lecture 4: Testing RestaurantsService – create

    Lecture 5: Testing RestaurantsService – findById

    Lecture 6: Testing RestaurantsService – updateById

    Lecture 7: Testing RestaurantsService – deleteById

    Lecture 8: Testing RestaurantsService – uploadImages

    Lecture 9: Testing RestaurantsService – deleteImages

    Lecture 10: First unit test in Restaurant Controller

    Lecture 11: Testing RestaurantController – getAllRestaurants

    Lecture 12: Testing RestaurantController – createRestaurant

    Lecture 13: Testing RestaurantController – getRestaurantById

    Lecture 14: Testing RestaurantController – updateRestaurant

    Lecture 15: Testing RestaurantController – deleteRestaurant

    Lecture 16: Testing RestaurantController – uploadFiles

    Chapter 15: Unit Testing Restaurant API – Part 2

    Lecture 1: Testing Auth Service

    Lecture 2: Testing AuthService – signUp

    Instructors

  • NestJs Build Modern APIs in with Unit Testing  No.2
    Ghulam Abbas
    Full Stack Developer & Designer
  • Rating Distribution

  • 1 stars: 1 votes
  • 2 stars: 7 votes
  • 3 stars: 11 votes
  • 4 stars: 22 votes
  • 5 stars: 56 votes
  • Frequently Asked Questions

    How long do I have access to the course materials?

    You can view and review the lecture materials indefinitely, like an on-demand channel.

    Can I take my courses with me wherever I go?

    Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!