Skip to content

prasenjit1011/NestjsMasterProject

Repository files navigation

Important Command List

npm i -g nestjs/cli

nest new projectname

npm run start:dev

nest g module users

nest g controller users

nest g service users

npm i @nestjs/mapped-types -D

npm i class-validator class-transformer

npm i prisma -D

npx prisma init npx prisma migrate dev -name init

push

npx prisma migrate dev --name name_change nest g module database nest g service database nest g resource employees

npm i @nestjs/throttler

postgresql://neondb_owner:[email protected]/neondb?sslmode=require

npm i --save @nestjs/typeorm typeorm mysql2 npm i cookie-parser npm i -D @types/cookie-parser

npm i --save @nestjs/typeorm typeorm pg

npm i @nestjs/graphql @nestjs/apollo graphql apollo-server-express

ts-morph rxjs reflect-metadata platform

Repo : https://www.youtube.com/watch?v=YXQr2LhYm0c

https://www.youtube.com/watch?v=rDOZB1Wolb8 https://www.youtube.com/watch?v=dk9bk_U1u7E

Graphql NestJs: NestJs Graphql Database (NestJs Graphql Postgres) https://www.youtube.com/watch?v=ETnTvvFFLgk

http://localhost:3000/graphql

  1. Mobile List : { mobiles{ id title price } }

----- getMobileById ----- { getMobileById(mobileId:3){ id title } }

  1. Add Mobile : mutation AddMobile($addMobileArgs:AddMobileArgs!){ addMobile(addMobileArgs:$addMobileArgs) }

{ "addMobileArgs": { "title": "Vivo", "price": 4521 } }

  1. Update Mobile : mutation UpdateMobile($updateMobileArgs: UpdateMobileArgs!){ updateMobile(updateMobileArgs:$updateMobileArgs) }

{ "updateMobileArgs": { "id":1, "title": "NewVivo", "price": 44552 } }

  1. Delete mutation DeleteMobile($mobileId: Int!){ deleteMobileById(mobileId:$mobileId) }

{ "mobileId":3 }


Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

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.

Stay in touch

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published