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.

Intermediate

71 Lessons

30h

Certificate of Completion

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.

AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

3 Assessments
59 Playgrounds
17 Quizzes

This course includes

3 Assessments
59 Playgrounds
17 Quizzes

Course Overview

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...Show More

TAKEAWAY SKILLS

Rest Api

Api Development

Jest

Using Aws Cloud Services

Unit Testing

Db Migration

What You'll Learn

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

What You'll Learn

Basic knowledge of NestJS concepts and RESTful API development

Show more

Course Content

1.

Introduction

Get familiar with developing secure, scalable RESTful APIs using NestJS fundamentals and best practices.
2.

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

Go hands-on with creating a secure RESTful API using NestJS and TypeORM for real-world applications.

Understand the Basics of NestJS and RESTful APIs

Assessment

4.

Validation, Exception Handling, and Logging

Enhance your skills in validation, exception handling, and logging to build robust NestJS APIs.
5.

Persist Data with TypeORM and MySQL

Take a closer look at integrating TypeORM with NestJS, configuring databases, and managing CRUD operations.
6.

Serialization and Interceptors

5 Lessons

Simplify complex topics like serialization, interceptors, role-based data control, caching, and custom logic.
7.

Authentication and Authorization

8 Lessons

Build on authentication, JWT implementation, guards, Passport strategies, and role-based access control.

Persist Data, Authentication, Validation, and Serialization

Assessment

8.

Testing

8 Lessons

Step through unit testing, Jest integration, mocks, test coverage, and E2E testing for NestJS.
9.

Deployment

6 Lessons

Walk through deploying NestJS apps efficiently using Docker, AWS RDS, ECR, ECS, and ALB.

Testing and Deployment

Assessment

10.

Conclusion

1 Lesson

Examine key concepts and next steps for mastering secure RESTful APIs with NestJS.
11.

Appendix

4 Lessons

Enhance your skills in setting up and debugging NestJS development environments and deploying with AWS.

Course Author

Trusted by 1.4 million developers working at companies

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Evan Dunbar

ML Engineer

Carlos Matias La Borde

Software Developer

Souvik Kundu

Front-end Developer

Vinay Krishnaiah

Software Developer

Eric Downs

Musician/Entrepeneur

Kenan Eyvazov

DevOps Engineer

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

Instant Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

AI-Powered Mock Interviews

Adaptive Learning

Explain with AI

AI Code Mentor