base_url = http://localhost:3000
NOTE: Import API documentation into Insomnia or Postman at /API_documentation
folder
Get All
base_url/tasks/
(GET)
Get By Id:
base_url/tasks/:id
(GET)
Create:
base_url/tasks/
(POST)
Update:
base_url/tasks/:id
(PUT)
Delete:
base_url/tasks/:id
(DELETE)
https://www.youtube.com/watch?v=wuK1MvSpcAc&list=PLryJIoSncQyNzHHbHMPQkjPRP3Kv0ICnq&index=3
https://docs.mongodb.com/manual/crud/ https://docs.mongodb.com/manual/reference/sql-comparison/
Create a Nest.js project:
$ nest new my-nest-project
Generate Module
$ nest g module my-module-name
Generate Controller
$ nest g controller my-controller-name
Generate Provider
$ nest g provider <MODULE>/shared/<NAME>.service
Example: $ nest g provider tasks/shared/task.service
Generate Class
$ nest g class <MODULE>/shared/<CLASS_NAME>
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.