An API from scratch with NestJS
summary
Shows how to build a production-ready TypeScript REST API with NestJS using Express or Fastify, wiring JWT and Passport for authentication (register/login issues signed tokens, passwords hashed, global filters map 401/400/500 errors) and Swagger for documentation. Demonstrates implementing CQRS and event sourcing: commands and queries on a command bus, aggregates that emit domain events persisted via TypeORM, a custom event publisher and projections into a talks table; demo includes an admin/admin account, a create→reject→accept workflow, and tests using an in-memory database.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 1:45NestJS overview
- 5:56Starting example project
- 13:46CQRS module and secure architecture
- 39:20Feature demo
- 41:27Q&A
related talks
38mBuild modern and scalable Node.js Web Applications with Nest
41mArchitecture in Node.js using NestJS
02h 11mBuilding a REST API with NestJS and Prisma
01h 08mAmazing Backends for Angular Devs with NestJS
29mAdventures in Node and Nest
01h 03mModern Web APIs with Node.js & TypeScript
26mBuilding a platform: NestJS from the ground up
22mTaming reactive node.js: Stream-oriented architecture with NestJS
