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
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
- Mobile List : { mobiles{ id title price } }
----- getMobileById ----- { getMobileById(mobileId:3){ id title } }
- Add Mobile : mutation AddMobile($addMobileArgs:AddMobileArgs!){ addMobile(addMobileArgs:$addMobileArgs) }
{ "addMobileArgs": { "title": "Vivo", "price": 4521 } }
- Update Mobile : mutation UpdateMobile($updateMobileArgs: UpdateMobileArgs!){ updateMobile(updateMobileArgs:$updateMobileArgs) }
{ "updateMobileArgs": { "id":1, "title": "NewVivo", "price": 44552 } }
- Delete mutation DeleteMobile($mobileId: Int!){ deleteMobileById(mobileId:$mobileId) }
{ "mobileId":3 }
A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ npm install
# 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
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
Nest is MIT licensed.