AI-powered learning
Save this course
Building Secure RESTful APIs with NestJS: A Practical Guide
Discover how to build secure RESTful APIs using NestJS, TypeScript, and various technologies. Delve into authentication, data modeling, error handling, testing, and deployment for scalable, real-world applications.
4.8
71 Lessons
30h
Join 2.9 million developers at
Join 2.9 million developers at
LEARNING OBJECTIVES
- Basic knowledge of NestJS concepts and RESTful API development
- Application of your knowledge while building a practical example
- An understanding of end-to-end software development for an API, from API description to testing and deployment
- The ability to explore data persistence using TypeORM and MySQL, master the CRUD operations, and handle the data relationships
- The ability to scale applications on AWS Cloud
Learning Roadmap
1.
Introduction
Introduction
Get familiar with developing secure, scalable RESTful APIs using NestJS fundamentals and best practices.
2.
NestJS Fundamentals
NestJS Fundamentals
Walk through NestJS architecture, REST principles, request handling, controllers, dependency injection, and platform choices.
3.
Connecting with REST: Building the Address Book App with NestJS
Connecting with REST: Building the Address Book App with NestJS
11 Lessons
11 Lessons
Go hands-on with creating a secure RESTful API using NestJS and TypeORM for real-world applications.
4.
Validation, Exception Handling, and Logging
Validation, Exception Handling, and Logging
8 Lessons
8 Lessons
Enhance your skills in validation, exception handling, and logging to build robust NestJS APIs.
5.
Persist Data with TypeORM and MySQL
Persist Data with TypeORM and MySQL
11 Lessons
11 Lessons
Take a closer look at integrating TypeORM with NestJS, configuring databases, and managing CRUD operations.
6.
Serialization and Interceptors
Serialization and Interceptors
5 Lessons
5 Lessons
Simplify complex topics like serialization, interceptors, role-based data control, caching, and custom logic.
7.
Authentication and Authorization
Authentication and Authorization
8 Lessons
8 Lessons
Build on authentication, JWT implementation, guards, Passport strategies, and role-based access control.
8.
Testing
Testing
8 Lessons
8 Lessons
Step through unit testing, Jest integration, mocks, test coverage, and E2E testing for NestJS.
9.
Deployment
Deployment
6 Lessons
6 Lessons
Walk through deploying NestJS apps efficiently using Docker, AWS RDS, ECR, ECS, and ALB.
11.
Appendix
Appendix
4 Lessons
4 Lessons
Enhance your skills in setting up and debugging NestJS development environments and deploying with AWS.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Complete more lessons to unlock your certificate
Developed by MAANG Engineers
ABOUT THIS COURSE
NestJS is built on top of the popular Express.js library and provides a modular and structured approach to building server-side applications.
You will take a hands-on approach to constructing a practical RESTful API from the ground up. By leveraging NestJS, TypeScript, and other technologies, you will delve into various topics, such as data modeling with TypeORM and MySQL, authentication and authorization mechanisms, request validation, error handling strategies, testing methodologies, deployment practices, and more.
By the end of this course, you will have gained the essential skills, knowledge, and hands-on experience necessary to build a real-world RESTful API. You will have learned how to scale your application using a public cloud, such as AWS, where your application can serve thousands and millions of customers cost-effectively. This comprehensive learning journey equips you to confidently navigate the intricacies of RESTful API development, ensuring you are well-prepared for NestJS development.
ABOUT THE AUTHOR
Sun Sunny
I'm a passionate full-stack developer with a love for programming.
Trusted by 2.9 million developers working at companies
A
Anthony Walker
@_webarchitect_
E
Evan Dunbar
ML Engineer
S
Software Developer
Carlos Matias La Borde
S
Souvik Kundu
Front-end Developer
V
Vinay Krishnaiah
Software Developer
Built for 10x Developers
No Passive Learning
Learn by building with project-based lessons and in-browser code editor


Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go


Future-proof Your Career
Get hands-on with in-demand skills


AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"




MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies


Free Resources