NestJS: Building Scalable Node.js APIs

Build structured, testable server-side apps with NestJS modules, dependency injection, TypeORM and guards. For TypeScript and Node.js developers.

Start course →

What you'll learn

  • Scaffold a NestJS app and organize it into modules, controllers and services.
  • Use dependency injection, pipes, guards, interceptors and filters in the right order.
  • Persist data with TypeORM entities, relations, queries and migrations.
  • Configure, log, cache, document and rate-limit an API.
  • Test, containerize and deploy a NestJS service.

Syllabus

Module 1: Getting Started

  1. Why NestJS?
  2. Setup with NestJS CLI
  3. Project Structure

Module 2: Foundation

  1. Controllers & Routing
  2. Routes & Decorators Deep Dive
  3. Dependency Injection

Module 3: Core Concepts

  1. Providers & Services
  2. Modules
  3. Middleware
  4. Pipes & Validation
  5. Guards & Authentication
  6. Exception Handling
  7. Interceptors
  8. Custom Decorators

Module 4: Database & Data

  1. Database Integration
  2. TypeORM Basics
  3. Relationships (One-to-Many, Many-to-Many)
  4. Queries & QueryBuilder
  5. Migrations

Module 5: Design & Patterns

  1. Environment & Configuration
  2. Logging
  3. Caching

Module 6: Practice & Deployment

  1. Testing
  2. E2E Testing
  3. Performance Optimization
  4. Deployment
  5. Docker Integration

Module 7: Code Quality

  1. Best Practices
  2. Interview Questions

Module 8: Tools & Ecosystem

  1. NestJS CLI Advanced
  2. API Documentation with Swagger

Module 9: Advanced Performance

  1. Streaming & Large Responses
  2. Rate Limiting

Module 10: Revision & Resources

  1. Key Takeaways