A progressive Node.js framework for building efficient and scalable server-side applications.
The first project covers the basics of using Nest framework, providing explanations of how each component functions and its responsibilities. Subsequent projects will build upon this foundation by adding additional content and concepts related to this framework.
Node.js (version >= 16) is installed and Package Manager on your operating system. Which package manager would you 🙄 to use? npm
$ npm i -g @nestjs/cli
$ nest new project-name
📁src/
🌟 app.controller.spec.ts - Unit tests
🌟 app.controller.ts - Controller with a single route
🌟 app.module.ts - The root module
🌟 app.service.ts - Service with a single method
☠️ main.ts - Core function - (express/fastify)
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
#initializing
🐱🏍 Bootstrappong starts
# Resolves host module dependencies(Controllers, Providers ..)
🐱🏍 onModuleInit
# Called once the host module's dependencies have been resolved
🐱🏍 onApplicationBootstrap
#Called once all modules have been initialized, but before listening for connections.
#running
🎮 Start listeners
# HTTP server, WS server
🎮 Appication is running
#terminating N\a
Guards
Guards have a single responsibility. They determine whether a given request will be handled by the route handler or not,depending on certain conditions
- Branch feature/
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
-
Documentation - https://nestjs.com
-
Introduction to NestJS - Mitrais
Nest is MIT licensed.