Learn NestJS
Free NestJS tutorials, plus how NestJS conventions make agent-generated backend code reviewable.
- Website
- learn-nestjs.com · all feeds from this site
- Feed URL
https://learn-nestjs.com/feed.xml
Read it in your FeedListing reader
Or add to: Feedly Inoreader Raw feed
Latest posts
-
Hello, World!
A running NestJS application in three commands, and what each generated file is actually for.
-
Nest conventions make agent-written code reviewable
The framework's opinionated structure turns out to be exactly what makes generated back-end code fast to review. Here is how to lean on it.
-
The NestJS mistakes language models actually make
TypeScript catches the type errors. What gets through is authorisation, validation configuration, and logic drifting out of services — and those are the ones that matter.
-
Dependency hygiene for NestJS projects
npm's problems, plus a framework whose packages must all be on the same major version, plus a decorator ecosystem where a version mismatch produces a runtime error with no useful message.
-
Modules
The unit of organisation in Nest, and the thing that decides what can see what.
-
Writing an AGENTS.md for NestJS
Nest already decides where things go, so this file has one real job: the security configuration the framework will happily let you get wrong.
-
Controllers and routing
Parse the request, call a service, return a value. Everything else in a controller is a mistake.
-
Per-tenant token budgets in NestJS
Nest's interceptors and guards are exactly the right shape for cost control: measure in one place, enforce before the handler runs, and no feature can be added without both.
-
Security review checklist for NestJS applications
The framework gives you the right places to put security controls. What it will not do is tell you when one is missing — and a missing global is invisible until someone finds it.
-
Providers and dependency injection
How Nest constructs your objects, and the injection patterns worth knowing beyond the constructor.
-
The performance traps in generated NestJS code
Two Nest-specific problems dominate: N+1 queries through the ORM, and request-scoped providers that quietly make your entire dependency graph rebuild on every request.
-
DTOs and validation
The boundary where untrusted input becomes a typed object. Get this right and most of your input-handling bugs disappear.
-
Guards, authentication and authorisation
Guards answer one question: may this request proceed? Getting the difference between authentication and authorisation right is where most back-end vulnerabilities live.
-
Database access and testing
Wiring a database into a Nest module, and building the test setup that lets an agent iterate without a container.
-
Interceptors
Code that wraps a handler — before and after. Logging, response shaping, caching, timeouts and cleanup all live here.
-
Exception Filters
Turning thrown errors into HTTP responses — in one place, with full detail in the log and none of it leaking to the client.
-
Middleware and Lifecycle
The layer beneath Nest's abstractions, and the module hooks that decide whether your redeploys leak database connections.
-
Configuration and Environment
An application that refuses to start on a missing secret is far better than one that starts and fails on the first request that needs it.