Mô tả

Nest.js is a progressive Node.js framework for building efficient, reliable and scalable server-side applications. NestJS is a server-side (backend) application framework beautifully crafted to support developers productivity and make their lives happier. Well, it's not only a framework, it's an enabler of entering the world of advanced engineering concepts such as Domain Driven Design, Event Sourcing, Microservices architecture.

I spent a good few years in my career developing large scale apps and it didn’t let me down any single time. It’s well written, having quality as an objective, modular web framework with a good documentation, delivering nice developer experience. Exactly the same way I’d describe Nest.

NestJs is built on the top of Typescript and Express.js. It also combines some elements of Object Oriented Programming and functional programming.

Here comes NestJS, a framework which is fully written in TypeScript (it supports JS too, but types are good), it’s easily testable and brings in all the necessary stuff you always think about but you don’t know what to choose.

Why NestJs?

NestJS doesn’t try to limit you to a particular way of doing things, it just provides the tooling you need. It doesn’t try to reinvent the wheel, it utilize existing tools you already know. For example, it uses express behind the scenes which makes your app compatible with the majority of express middlewares.

Here are some good reasons why NestJS shines:

  • Dependency Injection — NestJS provides DI straight out of the box, increasing efficiency, modularity and testability of applications.

  • Modularisation — NestJS provides a modular structure for organizing code within the same domain boundary into separate modules.

  • Flexibility — NestJS provides structure, which helps large teams build complex applications and yet comes in as lightweight as possible, so how you want to build is your choice.

  • Familiar APIs you already know — NestJS is heavily inspired by Angular, it is also quite similar to much established frameworks like Spring and .NET. This provides a shorter learning curve and lower entry threshold for developers.

  • Community — NestJS is the fastest rising framework, already with 14K stars surpassing HapiJS. Also, with NestJS leveraging on the Angular way of doing things, things can only get better for the community.

In this course, I will teach you the foundations/fundamentals of NestJs. I will teach you how to build RESTFUL APIs step by step. You will also learn how to plan, design and deploy APIs. I have also another separate section of GraphQL.


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

NestJs Fundamentals

Typescript Decorators, Generics and Classes

Build RESTFUL APIs with NestJs and MongoDB

Build RESTFUL APIs with NestJs and MySQL

Build RestFUL APIs with NestJs and PostgresQL

Deploy RESTFUL APIs

Build GraphQL APIs with NestJs

Add Documentation for your APIS

Authentication and Authorization using PassportJs

Yêu cầu

  • Having a basic understanding of JavaScript and/or NodeJS
  • Having basic knowledge of TypeScript is recommended, but not required

Nội dung khoá học

21 sections

Getting started with NestJs

5 lectures
Introduction to NestJs
05:59
Routing in NestJs
03:25
Access Express request Object in NestJs
04:35
Define Resources
03:45
Status Code, Redirection and Route Parameters
03:35

Typescript Foundations for NestJs

15 lectures
What are Generics
02:34
Typescript Setup and Installation
03:57
Generic Function
03:07
Generic Function T Array Type
02:29
Generic Function with Multiple Type Variables
02:22
Generic Constraints
02:19
Generic Interfaces to describe Object Properties
04:46
Create Interface to describe Function Type
03:17
Generic Classes and Interfaces
02:11
Introduction to Decorators
03:03
Arguments in Method Decorator
04:31
Configurable Decorator using Decorator Factory.
01:46
Property Decorator
04:28
Parameter Decorator
02:15
Class Decorator
00:38

CRUD With NestJs

4 lectures
Module Introduction
02:05
Create Post Endpoint to Save Record in Array
09:05
Request Payload in NestJs
06:41
FindAll and Delete Endpoint
04:51

Pipes and Validations

3 lectures
What are Pipes
02:37
Add Validations using ValidationPipe
06:26
Understand How ValidationPipe works
05:39

Middlewares and ExceptionFilters

3 lectures
What are Middlewares
02:12
Creating a Custom Logging Middleware
06:27
Creating HttpException Filter
10:14

Interceptors

2 lectures
What are Interceptors
01:44
Create Interceptor to Transform the Response
14:55

Connecting NestJs app with TypeORM and Mysql

5 lectures
Installing Mysql server
04:44
Connect NestJs to Mysql using TypeORM
06:59
Create an Entity to map a Database Table
05:15
Save new record in MySQL Database Table
09:57
Get, Update, and Delete Record
18:01

Relations between Entities

4 lectures
Adding One to One Relation between Entities
08:01
CRUD with One to One Relationship
29:59
Adding One to Many or Many to Many Relation between Entities
36:34
Adding Many to Many Relation between Entities
22:32

Connected NestJs App to MongoDB using Mongoose

2 lectures
Installing MongoDB
00:00
Connecting NestJs App with MongoDB
14:40

Authentication

5 lectures
Introduction to Authentication
04:32
Implement Signup User
14:27
Implement Login User
14:13
Introduction to PassportJs
03:56
Authenticate User using Passport-JWT Strategy
23:56

Create Documentation for REST APIs using Swagger

2 lectures
Configure Swagger with NestJs app
11:18
Add Documentation for Swagger
08:58

Deployment

1 lectures
Deploy NestJs app to MLab and Zeit Now
13:52

Connect NestJs to PostgreSQL and Sequlize

2 lectures
Install PostgreSQL
02:38
Connect NestJs app to Sequelize using Postgres
07:26

GraphQL Basics

14 lectures
What is GraphQL
04:28
Difference Between GraphQL and REST
00:06
GraphQL Query
03:06
Working with HackerNewsAPI
01:05
Arguments in GraphQL
01:11
Required Arguments in GraphQL
01:56
GraphQL Schema and Types
03:45
Aliases in GraphQL
01:52
Fragments In GraphQL
02:09
Nested Fields in GraphQL
02:17
Operations In GraphQL
01:33
Variables In GraphQL
03:39
Mutations In GraphQL
02:56
Directives In GraphQL
02:27

Build GraphQL APIs with NestJs

3 lectures
GraphQL Setup with NestJs
27:01
CRUD API with GraphQL and NestJs
31:35
Resolve Parent Object in Resolvers
08:36

Building REST APIs with NodeJs, Mongoose, and ExpressJs

12 lectures
Project Starter Template
00:07
Initial Setup for Nodejs and Express Server
01:06
Connecting Nodejs Application with MongoDB using Mongoose
01:26
Create Nodejs Project Structure Feature by Feature
03:35
Create a Model in Mongoose
01:48
Add Validations for Request Params in NodeJs using Joi package
04:16
Create a new Record in MongoDB by using HTTP POST Endpoint
01:15
Find All Records from MongoDB using HTTP GET Endpoint
01:15
Add Pagination in Mongoose
03:33
Find Single Record from MongoDB using HTTP GET Endpoint
02:00
Delete Record from MongoDB using HTTP DELETE Endpoint
01:53
Update Record from MongoDB using HTTP PUT Endpoint
02:54

Serialization

1 lectures
Transforming and sanitizing the data
11:19

Task Scheduling

2 lectures
Task Scheduling
05:42
Get access to full-stack developer blueprint
00:03

CRUD utilities with Nestjsx-CRUD

5 lectures
Connect NestJs app to Postgres
21:51
CURD Operations using nestjsx/crud package
23:02
Swagger Documentation and Validation
36:30
Pagination, Filtering and Sorting
12:08
One to Many Relationship in NestJS
22:48

Upgrade to Next NestJs Course

2 lectures
Build GraphQL APIs with NestJs and Prisma
00:01
Learn Unit Testing in NestJs
00:01

Bonus

1 lectures
Bonus Lecture
00:10

Đá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.