NestJS
A TypeScript framework for structured Node.js server applications, organised into modules, controllers and dependency injection.
In more detail
It uses decorators on classes and methods to declare routes and inject services. It runs on top of Express or Fastify, and its structure of modules, controllers and providers is modelled on Angular.
Related terms
- web framework — A library that provides the structure for building web applications, such as routing, middleware and request parsing, so you do not write them yourself.
- TypeScript — JavaScript with added type annotations, checked by a compiler before the code runs.
- decorator — A line starting with @ placed above a function or class that wraps it to add behaviour or information.
- dependency injection — Giving an object the collaborators it needs from outside, usually through its constructor, instead of letting it create or look them up itself.
- Node.js — A program that runs JavaScript outside the web browser, used mainly to build servers, command-line tools and back-end services.
Taught in
- Native HTTP Server: Request & Response Lifecycles — Node.js Internals & Backend Services
- Modern Decorators: Stage 3 Standards And Class Metadata — Production TypeScript