Skip to content

Topic · 77 articles

NestJS

Structured, testable server-side apps with NestJS.

NestJS is my default framework for backend services that need to stay maintainable as a team and a codebase grow. This hub works through the building blocks — modules, providers, guards, interceptors, and pipes — and then the harder production questions: transaction boundaries, validation, testing, and the folder structure that survives a second year.

It draws on the NestJS Production Guide series and connects directly to the Node.js, PostgreSQL, and Security hubs.

Subscribe to NestJS via RSS

All NestJS articles

A NestJS Production Checklist — Aman Kumar Singh
Deploying NestJS to Production — Aman Kumar Singh
Security Best Practices — Aman Kumar Singh
Integration and E2E Testing — Aman Kumar Singh
Unit Testing Services — Aman Kumar Singh
gRPC Services in NestJS — Aman Kumar Singh
Microservices with NestJS — Aman Kumar Singh
The Outbox Pattern — Aman Kumar Singh
Event-Driven Architecture — Aman Kumar Singh
CQRS in NestJS — Aman Kumar Singh
Pagination and Filtering — Aman Kumar Singh
API Versioning — Aman Kumar Singh
API Documentation with Swagger — Aman Kumar Singh
Health Checks and Readiness Probes — Aman Kumar Singh
Logging with a Custom Logger — Aman Kumar Singh
Rate Limiting and Throttling — Aman Kumar Singh
Sending Emails from NestJS — Aman Kumar Singh
Handling File Uploads in NestJS — Aman Kumar Singh
Server-Sent Events — Aman Kumar Singh
WebSockets and Gateways — Aman Kumar Singh
Scheduling and Cron Tasks — Aman Kumar Singh
Background Jobs with BullMQ — Aman Kumar Singh
Caching with Redis in NestJS — Aman Kumar Singh
Transactions and Data Integrity — Aman Kumar Singh
Show all 77 articles
The Repository Pattern and Services — Aman Kumar Singh
Database Migrations in NestJS — Aman Kumar Singh
Connecting PostgreSQL with TypeORM — Aman Kumar Singh
Role and Permission Authorization — Aman Kumar Singh
Authentication with Passport and JWT — Aman Kumar Singh
Configuration and Environment — Aman Kumar Singh
Middleware in NestJS — Aman Kumar Singh
Exception Filters and Error Handling — Aman Kumar Singh
Custom Pipes and Transformation — Aman Kumar Singh
Interceptors Explained — Aman Kumar Singh
Guards and Authorization — Aman Kumar Singh
DTOs and Validation Pipes — Aman Kumar Singh
Controllers and Routing — Aman Kumar Singh
Providers and Custom Providers — Aman Kumar Singh
Modules and Dependency Injection — Aman Kumar Singh
NestJS Architecture Overview — Aman Kumar Singh
Error Handling and Loading States — Aman Kumar Singh
Form Validation with Zod — Aman Kumar Singh
The Production Readiness Checklist — Aman Kumar Singh
Performance Tuning Before Launch — Aman Kumar Singh
A Production Security Checklist — Aman Kumar Singh
Caching Strategies for a SaaS — Aman Kumar Singh
Scaling a SaaS Beyond One Server — Aman Kumar Singh
Deploying a Full Stack SaaS — Aman Kumar Singh
Feature Flags and Safe Rollouts — Aman Kumar Singh
Audit Logs You Can Trust — Aman Kumar Singh
Structured Logging for Node.js — Aman Kumar Singh
Monitoring a SaaS in Production — Aman Kumar Singh
Multi-Tenancy Architecture for SaaS — Aman Kumar Singh
Organizations, Teams, and Invitations — Aman Kumar Singh
Subscription Billing and Plans — Aman Kumar Singh
Accepting Payments with Stripe — Aman Kumar Singh
Product Analytics and Event Tracking — Aman Kumar Singh
Handling File Uploads Securely — Aman Kumar Singh
Adding Full-Text Search — Aman Kumar Singh
Sending Transactional Emails — Aman Kumar Singh
Building a Notification System — Aman Kumar Singh
Securing Your SaaS API — Aman Kumar Singh
Organization and Multi-Tenant Authentication — Aman Kumar Singh
Session Management and Token Storage — Aman Kumar Singh
Multi-Factor Authentication (MFA) — Aman Kumar Singh
Adding OAuth and Social Login — Aman Kumar Singh
Role-Based Access Control (RBAC) in a SaaS — Aman Kumar Singh
Refresh Tokens Done Right — Aman Kumar Singh
JWT Authentication in NestJS — Aman Kumar Singh
A Folder Structure That Scales for Full Stack SaaS — Aman Kumar Singh
Managing Environment Variables and Secrets — Aman Kumar Singh
Setting Up Docker for Local Development — Aman Kumar Singh
Choosing Prisma or TypeORM for Your NestJS API — Aman Kumar Singh
Setting Up PostgreSQL the Right Way — Aman Kumar Singh
Setting Up NestJS the Right Way — Aman Kumar Singh
Setting Up a Monorepo with Turborepo — Aman Kumar Singh
Choosing the Right Tech Stack for Your SaaS (Without Overthinking It) — Aman Kumar Singh

Frequently asked questions

Does this cover NestJS in production, not just tutorials?

Yes. Alongside the core concepts you will find production concerns: DTO validation, guards and interceptors, transaction handling with the database, testing strategy, and a folder structure that scales with the team.