NestJS gives Node.js backends the structure that larger projects need: modules, dependency injection, decorators and a clear place for every piece of code. Teams choose it because a NestJS codebase tends to look the same from one project to the next, which makes onboarding and code review easier. This course builds a production-style API with NestJS and TypeScript, explaining the patterns behind the framework so the decorators never feel like magic.

What you'll learn

  • How NestJS is organised: modules, controllers and providers
  • Dependency injection and why it makes code easier to test and change
  • Request validation and transformation with DTOs and pipes
  • Guards, interceptors and exception filters, and where each one belongs
  • Working with a database through Prisma or TypeORM, including migrations and transactions
  • Authentication with Passport or custom guards, JWTs and role-based access
  • Configuration, environment validation and secrets
  • Background jobs and scheduled tasks with queues
  • Generating OpenAPI documentation from your code
  • Unit and end-to-end testing with Jest or Vitest

Who it's for

  • Node.js developers who have outgrown a hand-rolled Express structure
  • Angular or TypeScript developers who want a backend with familiar patterns
  • Teams standardising how they build APIs across several projects

Prerequisites

  • Solid JavaScript and working TypeScript: types, interfaces, classes and generics
  • Experience building a basic API, for example with Express (see Node.js and Express: Build REST APIs)
  • Basic SQL and a local database or Docker installed

Outcomes

By the end of this course you will be able to:

  1. Design a NestJS application as a set of focused modules with clear boundaries.
  2. Build validated, authenticated and documented REST endpoints.
  3. Use guards, interceptors and filters to handle cross-cutting concerns in one place.
  4. Test services and endpoints and prepare the app for deployment.

Course outline

ModuleTopic
1Why NestJS: project structure and the Nest CLI
2Modules, controllers and providers
3Dependency injection and custom providers
4DTOs, validation pipes and transformation
5Databases with Prisma or TypeORM
6Guards, interceptors and exception filters
7Authentication, JWTs and role-based access
8Configuration and environment management
9Queues, scheduled tasks and events
10OpenAPI documentation
11Unit and end-to-end testing
12Logging, health checks and deployment

FAQ

Do I need to know Express first?

It helps. NestJS runs on Express by default, and understanding middleware and request handling makes the framework easier to reason about. If you have built any small Node API, you are ready.

Does the course cover GraphQL or microservices?

The main project is a REST API. We show where NestJS's GraphQL and microservice modules fit and how the same modules and providers carry over, without making them the focus.

Prisma or TypeORM?

We use one in the main project and compare both, so you can pick what suits your team. The NestJS patterns are the same either way.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.