Courses / Node.js Backend / NODE-301

Enterprise Backend Engineering & Distributed Systems with NestJS, Prisma & Microservices

Architect High-Assurance Modular Monoliths, Prisma ORM Relational Schemas, TOTP 2FA & Next.js 15 Portals

$145 $22 85% OFF
3.1 CEU Credits
31 Study Hours (4 Weeks)
Advanced
5 Modules
20 Hands-on Labs
Course Tuition
$145 $22 85% OFF
CEU Credits 3.1 CEUs
Study Workload Breakdown (31 Hours):
Architectural Reading & Theory: 6.8 hrs
Hands-on Labs & Coding Drills: 21.7 hrs
Live Mentorship Cohort $150

Prefer live accountability? Join a guided 4–6 week cohort with weekly live faculty calls, 1-on-1 code reviews & capstone grading. Subsidized by Savadub Limited CSR.

Join Cohort ($150)
Subsidized Tuition: This course is made accessible at $22 through the Corporate Social Responsibility (CSR) endowment from Savadub Limited and partner sponsors.

Course Prerequisites

Part of Academy Track:
Node.js Backend & Server-Side Engineering Stage 5 of 5 Courses in this track progression.
Access Lab Materials on LMS
Competency Matrix

What You Will Master

Architect Clean Architecture domain boundaries and multi-package monorepos with NestJS IoC containers
Design schema-first relational models and zero-downtime database migrations with Prisma ORM and PostgreSQL
Enforce enterprise governance using TOTP 2FA (otplib), Passport authentication guards, and RBAC metadata
Build distributed microservices with NATS and Redis transports and implement tamper-resistant audit logs
Connect NestJS WebSockets to Next.js 15 App Router command centers with Server Components and AdminJS
Detailed Syllabus

Curriculum Modules (5 Modules)

Explore the structured module breakdown, lesson outcomes, and practical lab exercises.

~5.9 hrs 0.59 CEUs

Welcome to Module 1: Enterprise Architecture, Inversion of Control & NestJS Core. In this section of the curriculum, learners dive deep into foundational and advanced principles designed for production application. This module covers: Deconstruct enterprise architectural patterns, avoid microservice premature optimization with Modular Monoliths, and implement Clean Architecture boundaries in TypeScript.; Master NestJS IoC containers, register providers and dynamic modules, and navigate lifecycle hooks from onModuleInit to beforeApplicationShutdown.; Configure controller routing, distinguish between DEFAULT (Singleton), REQUEST, and TRANSIENT provider scopes, and analyze performance trade-offs..

01
Clean Architecture, Domain-Driven Design & Modular Monoliths

Deconstruct enterprise architectural patterns, avoid microservice premature optimization with Modular Monoliths, and implement Clean Architecture boundaries in TypeScript.

~89 min Lab Exercise
02
NestJS Core Concepts: Modules, Providers & DI Lifecycle

Master NestJS IoC containers, register providers and dynamic modules, and navigate lifecycle hooks from onModuleInit to beforeApplicationShutdown.

~97 min Lab Exercise
03
Controllers, Services & Provider Scopes (Singleton vs Request)

Configure controller routing, distinguish between DEFAULT (Singleton), REQUEST, and TRANSIENT provider scopes, and analyze performance trade-offs.

~81 min Lab Exercise
04
Configuration Management, Environment Validation & Dynamic Modules

Implement type-safe configuration with @nestjs/config, validate environment variables on boot using Joi/Zod, and design configurable dynamic feature modules.

~89 min Lab Exercise
Automated Code Evaluations & Lab Grading in LMS Launch in LMS Playground

Welcome to Module 2: Type-Safe Relational Data Modeling with Prisma ORM & PostgreSQL. In this section of the curriculum, learners dive deep into foundational and advanced principles designed for production application. This module covers: Master the Prisma Schema definition language, design relational mappings (1:1, 1:N, M:N), configure enums, compound unique constraints, and PostgreSQL native types.; Manage reproducible database migrations, generate deterministic SQL diffs, handle zero-downtime schema evolution, and seed initial tenant datasets.; Master nested relational querying, solve over-fetching with fine-grained select clauses, execute database-level aggregations, and optimize query latency..

01
Schema-First Data Modeling & The Prisma Schema DSL

Master the Prisma Schema definition language, design relational mappings (1:1, 1:N, M:N), configure enums, compound unique constraints, and PostgreSQL native types.

~81 min Lab Exercise
02
Prisma Migrations & Production Schema Evolution

Manage reproducible database migrations, generate deterministic SQL diffs, handle zero-downtime schema evolution, and seed initial tenant datasets.

~97 min Lab Exercise
03
Advanced Prisma Client Queries: Includes, Filters & Aggregations

Master nested relational querying, solve over-fetching with fine-grained select clauses, execute database-level aggregations, and optimize query latency.

~89 min Lab Exercise
04
Prisma Interactive Transactions & Client Extensions

Execute atomic database mutations using Prisma interactive transactions, manage write isolation, and extend PrismaClient with custom query methods and soft-delete filters.

~89 min Lab Exercise
Automated Code Evaluations & Lab Grading in LMS Launch in LMS Playground

Welcome to Module 3: The NestJS Execution Pipeline & Enterprise Security Governance. In this section of the curriculum, learners dive deep into foundational and advanced principles designed for production application. This module covers: Master the NestJS request lifecycle, configure global ValidationPipes, strip unknown request parameters, and validate nested DTO objects with class-validator.; Architect multi-strategy authentication in NestJS using Passport, implement JWT validation guards, and design public route bypass decorators.; Implement Time-Based One-Time Password (TOTP) two-factor authentication using otplib, generate QR code setup buffers, and manage 2FA backup recovery codes..

01
Data Transformation & Validation with Pipes & Class-Validator

Master the NestJS request lifecycle, configure global ValidationPipes, strip unknown request parameters, and validate nested DTO objects with class-validator.

~89 min Lab Exercise
02
Multi-Strategy Authentication with Passport & JWT Guards

Architect multi-strategy authentication in NestJS using Passport, implement JWT validation guards, and design public route bypass decorators.

~97 min Lab Exercise
03
Enterprise Identity: TOTP Two-Factor Authentication with otplib

Implement Time-Based One-Time Password (TOTP) two-factor authentication using otplib, generate QR code setup buffers, and manage 2FA backup recovery codes.

~73 min Lab Exercise
04
Role-Based Access Control, Custom Decorators & Interceptors

Implement Role-Based Access Control (RBAC) with custom metadata decorators, transform API responses with interceptors, and build centralized RFC 7807 Exception Filters.

~97 min Lab Exercise
Automated Code Evaluations & Lab Grading in LMS Launch in LMS Playground

Welcome to Module 4: Enterprise Real-Time Gateways, Microservices & Audit Architecture. In this section of the curriculum, learners dive deep into foundational and advanced principles designed for production application. This module covers: Build structured WebSocket gateways in NestJS using decorators, handle lifecycle hooks (OnGatewayConnection), and inject Guards and Interceptors into socket handlers.; Deconstruct NestJS Microservice transport layers (TCP, Redis Pub/Sub, Kafka), implement request-response and event patterns, and build distributed systems.; Design immutable compliance audit ledgers, capture user context, IP addresses, and state diffs, and ensure tamper-resistant governance logging..

01
Enterprise WebSocket Gateways with @nestjs/websockets

Build structured WebSocket gateways in NestJS using decorators, handle lifecycle hooks (OnGatewayConnection), and inject Guards and Interceptors into socket handlers.

~89 min Lab Exercise
02
Distributed Event Architecture: NestJS Microservices

Deconstruct NestJS Microservice transport layers (TCP, Redis Pub/Sub, Kafka), implement request-response and event patterns, and build distributed systems.

~105 min Lab Exercise
03
Immutable Audit Trails & Compliance Logging

Design immutable compliance audit ledgers, capture user context, IP addresses, and state diffs, and ensure tamper-resistant governance logging.

~89 min Lab Exercise
04
Health Checks with Terminus & Prometheus Metrics

Configure production health checks with @nestjs/terminus, monitor database and memory health indicators, and export Prometheus metrics.

~81 min Lab Exercise
Automated Code Evaluations & Lab Grading in LMS Launch in LMS Playground

Module 5: Production Deployment, CI/CD & Observability. Containerise a NestJS application with a production-optimised multi-stage Dockerfile, configure PM2 cluster mode for zero-downtime restarts, and deploy behind an Nginx reverse proxy.. Build a complete GitHub Actions CI/CD pipeline: lint β†’ test β†’ build Docker image β†’ push to registry β†’ deploy to VPS or cloud: with environment-specific secrets management.

01
Production Deployment with Docker & PM2

Containerise a NestJS application with a production-optimised multi-stage Dockerfile, configure PM2 cluster mode for zero-downtime restarts, and deploy behind an Nginx reverse proxy.

~70 min Lab Exercise
02
CI/CD Pipelines with GitHub Actions

Build a complete GitHub Actions CI/CD pipeline: lint β†’ test β†’ build Docker image β†’ push to registry β†’ deploy to VPS or cloud: with environment-specific secrets management.

~70 min Lab Exercise
03
Prometheus, Grafana & Application Observability

Instrument a NestJS application with custom Prometheus metrics, wire @willsoto/nestjs-prometheus, build Grafana dashboards for request rate, error rate, and latency, and configure alerting rules.

~70 min Lab Exercise
04
Distributed Tracing with OpenTelemetry

Instrument a NestJS microservices system with OpenTelemetry SDK, export traces to Jaeger or Tempo, correlate trace IDs across service boundaries, and debug distributed request flows.

~70 min Lab Exercise
Automated Code Evaluations & Lab Grading in LMS Launch in LMS Playground

Node.js Backend Progression

Continue advancing through the sequential curriculum stages of this academy track:

Enroll in NODE-301 on LMS