Skip to content

ElderSam/nestjs-to-do-app

Repository files navigation

To do App in Nest.js

Tasks API

base_url = http://localhost:3000 NOTE: Import API documentation into Insomnia or Postman at /API_documentation folder

Routes:

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)


Tutorial

https://www.youtube.com/watch?v=wuK1MvSpcAc&list=PLryJIoSncQyNzHHbHMPQkjPRP3Kv0ICnq&index=3

MongoDB

https://docs.mongodb.com/manual/crud/ https://docs.mongodb.com/manual/reference/sql-comparison/

CLI TIPS:

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>


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.