NestJS Basic Concepts (V10.X)
Main Building Blocks Controller - Handle incoming request Services - Handle business logic Modules - Group together everything Pipes - Validate incoming data Filters - Handle incoming errors Guards - Handle authentication Interceptors - Adding extra data to incoming request or to response Repositories - Handle data stored in DB Nest does not handle HTTP request itself. We need to provide either Express or Fastify for handling HTTP requests. By default, Nest uses Express, Nest main libraries, " @nestjs/common " : Functions, Classes which are mainly use in Nest " @nestjs/core " : " @nestjs/platform-express " : Express adaptor to handle HTTP requests " reflect-metadata " : To use of JavaScript Decorator feature " typescript " : TypeScript tsconfig , both decorator lines are important to make nest working properly, { " compilerOptions " : { " module " : " CommonJS " , " target " :