Course Overview
NestJS is a Node.js back-end development framework built upon Express, leveraging the power of TypeScript.
NestJS leverages the incredible popularity and robustness of JavaScript as a language and Node.js as a technology. It is inspired by common libraries and frameworks such as Angular, React and Vue which improve developer productivity and experience.
Even considering the amount of superb libraries, helpers and tools that exist for server-side Node.js, none of them effectively solve the main problem - the architecture of an application.
NestJS provides an out-of-the-box application architecture which allows developers and teams to create highly testable, scalable, loosely coupled and easily maintainable applications.
Recently, the NestJS framework is gaining extreme popularity due to its incredible features;
Leverages TypeScript - strongly typed language which is a super-set of JavaScript
Simple to use, easy to learn and easy to master
Powerful Command Line Interface (CLI) tool that boosts productivity and ease of development
Detailed, well-maintained documentation
Active codebase development and maintenance
Open-source (MIT license)
Supports dozens nest-specific modules that help you easily integrate with common technologies and concepts such as TypeORM, Mongoose, GraphQL, Logging, Validation, Caching, Websockets and much more
Easy of unit-testing applications
Made for Monoliths and Micro-services (entire section in the documentation regarding the Microservice type of a NestJS application, as well as techniques and recipes).
In this course I am going to guide you through the process of planning, developing and deploying a fully-featured back-end application, based on my experience developing and maintaining systems that support dozens of millions of concurrent users at scale.
FAQ
FAQ area empty
Course curriculum
Chương 1 Introduction to NestJS & Pre-requisites 4 bài · 5 phút
- Welcome to the course! Học thử 1:11
- Installing Node.js and Yarn Học thử
- Installing the NestJS CLI Học thử 0:56
-
(Optional) Installing VSCode and Extensions 2:55
Chương 2 Task Management Application (REST API) 26 bài · 1 giờ 42 phút
-
Project Overview 5:17
-
Creating our project via the NestJS CLI 2:04
-
NestJS Project Structure 6:36
- Introduction to NestJS Modules Học thử 2:53
- More Valuable Content Học thử 0:45
-
Creating a Tasks Module 3:32
-
Introduction to NestJS Controllers 3:46
- Creating at Tasks Controller Học thử 3:37
- Introduction to NestJS Providers and Services Học thử 5:02
-
Creating a Tasks Service 5:54
-
Feature: Getting All Tasks 7:30
-
Installing Postman
-
Creating a Postman Collection 1:43
-
Defining a Task Model 5:01
-
Feature: Creating a Task (Part 1 - Controller) 4:59
-
Feature: Creating a Task (Part 2 - Service) 6:36
-
Intro to Data Transfer Objects (DTO) 5:36
-
Implementing CreateTaskDto 4:58
-
Feature: Getting a Task by ID 5:43
-
Challenge: Deleting a Task 0:52
-
Solution: Deleting a Task 4:23
-
Challenge: Update Task Status 1:19
-
Solution: Update Task Status 5:27
-
Feature: Searching and Filtering 8:49
-
Summary Quiz
-
Section Code
Chương 3 Validation and Error Handling 7 bài · 20 phút
-
Introduction to NestJS Pipes 4:14
-
ValidationPipe: Creating a Task 4:31
-
Error Handling: Getting a non-existing Task 4:16
-
Error Handling: Deleting a non-existing Task 1:09
-
Validation: Update Task Status 3:27
-
Challenge: Validating Task Filtering and Search 2:42
-
Section Code
Chương 4 Data Persistence - PostgreSQL and TypeORM 19 bài · 1 giờ 8 phút
-
Introduction to Persistence 0:29
-
Installing Docker and pgAdmin
-
Running PostgreSQL via Docker 4:02
-
Setting up pgAdmin 1:45
-
Creating a Database using pgAdmin 0:54
-
Introduction to TypeORM 2:57
-
Setting up a Database Connection 4:29
-
Creating a Task Entity 3:51
-
Active Record VS Data Mapper Patterns 3:39
-
Creating a Tasks Repository 3:32
-
Refactoring for Tasks Service 3:44
-
Persistence: Getting a Task by ID 8:33
-
Persistence: Creating a Task 7:31
-
(Challenge) Persistence: Deleting a Task 1:22
-
(Solution) Persistence: Deleting a Task 4:58
-
Persistence: Update Task Status 2:40
-
Small Change Needed 1:40
-
Persistence: Getting All Tasks 12:21
-
Section Code
Chương 5 Auth Part 1 - Authentication 15 bài · 1 giờ 16 phút
-
Intro to Authentication and Authorization 1:11
-
Setting up AuthModule, User Entity and User Repository 5:05
-
Feature: Signing Up 8:26
-
Validation: Credentials and Password Strength 4:12
-
Error Handling: Username Conflicts 6:42
-
Securely Storing Passwords 7:22
-
Password Hashing With Bcrypt 4:25
-
Feature: Signing In 4:42
-
Intro to JSON Web Tokens (JWT) 5:54
-
Setting up the JWT Module and Passport.js 3:34
-
Signing a JWT Token on Sign In (Authentication) 7:08
-
Implementing JWT Validation 11:38
-
Custom @GetUser Decorator 3:14
-
Guarding the Tasks Routes 2:00
-
Section Code
Chương 6 Auth Part 2 - Task Ownership and Restrictions 9 bài · 24 phút
-
Tasks and Users - Database Relation 3:57
-
Make Users Own Tasks 4:36
-
Serialize User Data 3:39
-
Restricting Getting All Tasks 3:30
-
BUG FIX: Getting All Tasks 2:33
-
Restricting Getting a Task By ID 3:50
-
Restricting Status Updates 0:50
-
Restricting Deleting A Task 1:23
-
Section Code
Chương 7 THANK YOU! 1 bài · 2 phút
-
THANK YOU! (+ Promotion) 1:33
Chương 8 (Bonus) Logging 3 bài · 18 phút
-
Introduction to Logging 2:53
-
Implementing Logs in our NestJS app 14:54
-
Section Code
Chương 9 (Bonus) Configuration Management 8 bài · 36 phút
-
Introduction to Configuration 2:10
-
Windows: Environment Variables
-
Quick Intro to Environment Variables 3:50
-
Setting up ConfigModule 9:18
-
TypeORM Configuration 9:37
-
Config Schema Validation 6:38
-
JWT Secret Configuration 4:07
-
Section Code
Chương 10 (Bonus) Front-end Application 2 bài · 6 phút
-
Front-end Application 5:35
-
Section Code
Chương 11 (Bonus) Deployment 9 bài · 30 phút
-
DISCLAIMER: Potential Costs
-
Signing up to Heroku 1:06
-
Creating a Heroku Application 0:58
-
Installing the the Heroku CLI 1:11
-
Postgres on Heroku 2:59
-
Changes in our NestJS App 5:11
-
Deploying NestJS to Heroku 9:48
-
Deploying Front-end to GitHub Pages 8:20
-
Section Code
Chương 12 (Bonus) Unit Testing 6 bài · 36 phút
-
Unit Testing Crash Course: Basics 1:46
-
Unit Testing Crash Course: First Tests 6:38
-
IMPORTANT: Fixing import paths 1:35
-
Testing TasksService - Part 1 18:43
-
Testing TasksService - Part 2 7:29
-
Section Code
Chương 13 GraphQL + MongoDB 28 bài · 1 giờ 40 phút
-
GraphQL + MongoDB: Section Introduction 1:05
-
Project Overview: School Management 2:38
-
MongoDB Installation
-
Robo 3T - Connecting to the MongoDB Database 1:14
-
Project setup 2:04
-
Ensure NestJS 7 Installation 0:54
-
Installing GraphQL Dependencies 3:02
-
IMPORTANT! GraphQL installation version
-
Creating the Lesson Module 1:26
-
Defining the Lesson GraphQL Type 3:13
-
Creating the Lesson Resolver 4:03
-
Using the GraphQL Playground 3:44
-
Persistence: TypeORM, MongoDB and our Lesson Entity 6:33
-
LessonService and createLesson method 8:05
-
Create Lesson GraphQL Mutation 5:01
-
GetLesson GraphQL Query with MongoDB 3:40
-
Validation: Create Lesson Input 7:15
-
Challenge: Get All Lessons GraphQL Query 4:07
-
Creating the Student Module 1:43
-
Challenge: Defining the Student Entity 2:53
-
Challenge: Create Student Mutation 10:28
-
Challenge: Get All Students GraphQL Query 2:37
-
Challenge: Get Student by ID Query 2:44
-
Assign Students To Lesson GraphQL Mutation 10:26
-
Improvement: Assign Students Upon Lesson Creation 3:14
-
Resolve "students" Field in Lesson 8:13
-
Additional Resources: GraphQL
-
Section Code
Requirment
-
Having a basic understanding of JavaScript and/or NodeJS
-
Having basic knowledge of TypeScript is recommended, but not required
Outcomes
-
Becoming familiar with the NestJS framework and its components
-
Designing and developing REST APIs performing CRUD operations
-
Authentication and Authorization for back-end applications
-
Using TypeORM for database interaction
-
Security best practices, password hashing and storing sensitive information
-
Persisting data using a database
-
Deploying back-end applications at a production-ready state to Amazon Web Services
-
Writing clean, maintainable code in-line with industry standards
-
Utilising the NestJS Command Line Interface (CLI)
-
Using Postman for testing back-end services
-
Using pgAdmin as an interface tool to manage PostgreSQL databases
-
Implement efficient logging in a back-end application
-
Environment-based configuration management and environment variables
-
Implementing data validation and using Pipes
-
Guarding endpoints for authorized users using Guards
-
Modelling entities for the persistence layer
-
TypeScript best practices
-
Handling asynchronous operations using async-await
-
Using Data Transfer Objects (DTO)
-
Hands-on experience with JSON Web Tokens (JWT)
-
Unit testing NestJS applications
-
Using GraphQL with NestJS
-
Database persistence with MongoDB
0 Student
1 Course
0 review