- docker and docker-compose
- node.js
- nest.js cli
- Ready To Run.
- Postgres Database as Container.
- Config Service
- Read and Ensure .env variable.
- .env Sample.
- Connect Postgres Database.
Member
- Register Member.
- X-Member-Token
Todo
- Only member can create new todo with
not_started
status. - Every member can list
existing
todo. - Only todo
owner
can update theirtitle
anddescription
. - Only todo
owner
can change status. - Only todo
owner
can delete todo(soft delete). - Only todo
owner
can assign member. - Send notification to all assigned member when
owner
deleteactive
todo. - Run a
background scheduler
to notify all assigned members.
Other
- Authorization --> UseGuards()
- Rate Limiting from header X-Forwarded-For
-
Clone Project
git clone https://github.com/pspapleng/NestJS-todo.git npm install
-
Run Database As Container
docker-compose up -d
-
Run Project
npm run start:dev
- Generate Migration
npm run typeorm:migration:generate -- init
- Run Migration
npm run typeorm:migration:run