Mô tả

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!!!


Bạn sẽ học được gì

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

Yêu cầu

  • Basic knowledge of JavaScript, TypeScript, NodeJs
  • Basic knowledge of MongoDB, Postgres
  • Knowledge of API's is plus, but not required

Nội dung khoá học

18 sections

Introduction

4 lectures
Introduction to the Course
01:32
DEMO of API
05:46
What is Nest.js & Why we need it?
02:50
How to Follow the Course & Code?
01:54

Setting up Environment

1 lectures
Installing all required tools
02:53

Setup / Overview of Nest.js

6 lectures
Installing Nest CLI & Creating app
03:14
Understanding the folder structure
03:06
Nest.js Modules
04:44
Nest.js Controllers
03:42
Nest.js Service & Providers
05:32
Connecting to MongoDB with mongoose
10:07

Let’s start Restaurant API with Nest

8 lectures
Creating Restaurant Schema
08:22
Get all Restaurants
11:09
Create a new Restaurant
06:22
What is DTO?
02:22
Creating a Restaurant DTO
02:32
Get Restaurant by ID
06:52
Update Restaurant by ID
08:09
Delete Restaurant
04:47

Adding Search & Pagination to API

2 lectures
Adding Search
06:54
Adding Pagination
05:09

Validation, Pipes & Error Handling

4 lectures
What are Pipes?
03:29
Using Validation Pipe Globally
10:36
Adding Validation Rules in Update DTO
03:34
Invalid Mongoose ID Error
02:59

Generating Restaurant Location

3 lectures
What is GeoCoder
03:03
Generating Coordinates & Address
10:23
Saving Location in Restaurants
05:47

Upload Restaurant Images to AWS S3

5 lectures
Create Bucket on S3
07:53
Getting files through File Intercepter
06:50
Uploading images to S3
11:55
Saving Images in Restaurant
03:15
Delete Restaurant Images
09:50

Authentication with Passport JWT

9 lectures
Generating Auth Module
02:54
Creating User Schema
05:53
Sign up DTO with Validators
02:23
User Sign up
06:40
Hash user password while Sign up
03:31
Handle Duplicate Email Error
02:45
Login User
07:35
Setting Up JWT & Passport
06:03
Sign JWT token on Login
05:48

Protecting Routes with Guards & Custom Decorators

7 lectures
Setting Up JWT Strategy
08:22
Using AuthGuard to Protect Routes
04:43
Current User Decorator
04:54
Saving Current User in Restaurant
05:52
Creating User Roles Guard
08:17
Roles Decorator
03:49
Authorize Restaurant Ownership
05:15

Adding Meals in Restaurant

7 lectures
Creating Meal Model
05:53
Create Meal DTO
06:10
Creating a Meal
14:48
Getting all Meals
05:24
Get Meal by ID
03:51
Update Meal
06:57
Delete Meal
05:54

Library API with TypeORM & Postgres

8 lectures
Create Library Project
04:25
Install & Setup Postgres & pgAdmin
03:36
Connecting to Postgres Database
04:08
Create Book Entity
03:12
Create new Book
08:11
Get all Books & Book by ID
03:58
Update Book
04:09
Delete Book
02:24

Database Relationships

3 lectures
Relations & Types of relations
02:41
Create User Entity
05:33
Adding Books & User Relation (OneToMany & ManyToOne)
06:48

Unit Testing Restaurant API - Part 1

16 lectures
What is Unit Testing?
02:47
Write first unit test in Restaurant Service
08:39
Testing RestaurantsService - findAll
10:22
Testing RestaurantsService - create
09:48
Testing RestaurantsService - findById
08:43
Testing RestaurantsService - updateById
04:46
Testing RestaurantsService - deleteById
02:33
Testing RestaurantsService - uploadImages
05:49
Testing RestaurantsService - deleteImages
02:46
First unit test in Restaurant Controller
06:50
Testing RestaurantController - getAllRestaurants
03:41
Testing RestaurantController - createRestaurant
03:41
Testing RestaurantController - getRestaurantById
03:05
Testing RestaurantController - updateRestaurant
09:14
Testing RestaurantController - deleteRestaurant
07:23
Testing RestaurantController - uploadFiles
03:52

Unit Testing Restaurant API - Part 2

7 lectures
Testing Auth Service
05:53
Testing AuthService - signUp
09:26
Testing AuthService - login
08:48
Testing Auth Controller
04:08
Testing AuthController - signUp
03:04
Testing AuthController - login
02:20
Testing JwtStrategy
11:27

e2e Testing Restaurant API

5 lectures
What is e2e Testing
04:19
Testing Authentication Routes
10:47
Testing Restaurants POST protected Routes
06:07
Testing Restaurants GET Routes
04:09
Testing Restaurants PUT & DELETE Routes
02:26

Deployment

2 lectures
Preparing API for Deploy
07:26
Deploy API on Heroku
05:56

End of the Course

1 lectures
Congratulations!!!
00:45

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.