Backend & API
NestJS
A Node.js framework with modules, dependency injection and decorators – structure for larger APIs.
Article
NestJS 11 in practice – modules, DI, validation, Mongoose, queues and hexagonal architecture
We move the pierogi shop's order API to NestJS 11 – modules and dependency injection, controllers and DTOs with class-validator, pipes, guards, interceptors and exception filters, Zod-validated configuration, Mongoose 9, ports and adapters, scheduled jobs and a BullMQ queue, plus tests with swapped dependencies.
Related articles
- Swagger and OpenAPI in practice – docs from code in NestJS and Express, a typed client and contract hygiene
We document the pierogi shop API with OpenAPI – in NestJS with @nestjs/swagger (CLI plugin, response DTOs, an API key in Swagger UI, URI versioning, export without a database), in Express from Zod…
- Backend login and registration – passwords, sessions, JWT, refresh token rotation and OAuth
We build authentication for the pierogi shop API in Express 5 (plus a NestJS variant) – argon2id password hashing, short-lived JWTs and rotated refresh tokens in httpOnly cookies with reuse…
Around the topic
- nestjs/nest repo · github · nestjs
- jmcdo29/testing-nestjs repo · github · jmcdo29
- Sairyss/backend-best-practices repo · github · Sairyss
- pvarentsov/typescript-clean-architecture repo · github · pvarentsov