NestJS is a progressive Node.js framework built with TypeScript, inspired by Angular’s architecture.
It sits on top of: Express.js
NestJS helps you write enterprise-level backend code, not just quick scripts.
npm install -g @nestjs/cli
nest --version
Create a new project:
nest new my-nest-app
Then run it:
cd my-nest-appnpm run start:dev
Open your browser:
http://localhost:3000
After creating the project, you’ll see this structure:
src/├── main.ts├── app.module.ts├── app.controller.ts└── app.service.ts
Let’s break it down 👇