Nest JS

Description

Nest JS is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with and fully supports TypeScript (yet still enables developers to code in pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).

Installation

$ npm install -g @nestjs/cli

Quick Start

$ nest new .

Running the app

# development
$ npm run start:dev

# production mode
$ npm run start:prod

Generate Module

$ nest g module <module-name>
  • Generate Controller for Module
$ nest g controller <module-name>
  • Generate Service for Module
$ nest g service <module-name>

Prisma

$ npm install prisma @prisma/client

To Intialize Prisma

$ npx prisma init

Class Validator and Class Transformer

$ npm install class-validator class-transformer