Writing

Blog

Technical notes, implementation guides, and durable lessons from NestJS backend projects.

Real-time Chat with NestJS and Socket.io

Real-time Chat with NestJS and Socket.io

A focused walkthrough of a simple NestJS WebSocket gateway that tracks connections, disconnections, and chat messages with Socket.io.

NestJSSocket.ioRealtimeWebSockets
NestJS, TypeORM, and Multi-Tenancy

NestJS, TypeORM, and Multi-Tenancy

A practical architecture for serving multiple customer databases from one NestJS application using TypeORM and request-scoped tenant context.

NestJSTypeORMMulti-tenancyArchitecture
Error Tracking in NestJS with Sentry

Error Tracking in NestJS with Sentry

How to add Sentry to a NestJS project with an exception filter so production errors are visible before users report them.

NestJSSentryObservabilityErrors
A Typed NestJS Configuration Module with Zod

A Typed NestJS Configuration Module with Zod

How to centralize environment variables in NestJS with @nestjs/config, Zod validation, inferred TypeScript types, and a small EnvService.

NestJSConfigurationZodTypeScript
Authentication Part 2 with NestJS

Authentication Part 2 with NestJS

Create the first auth and users modules, wire JWT sign-in and sign-up behavior, and protect a profile route with a NestJS guard.

NestJSAuthenticationJWTGuards
Implementing an Auth Flow Fast with NestJS

Implementing an Auth Flow Fast with NestJS

The first step in a NestJS auth-flow series: project setup, CLI usage, SWC compilation, TypeScript target tuning, and Vercel deployment basics.

NestJSAuthenticationSWCVercel