Task manager using serverless + nestjs + redis
docker run -d --name redis -p 6379:6379 redis
Step 1
npm install
Step 2
npm run serverless
- I got my aggregator api running on
localhost:3000
.
- Use via Swagger:
http://localhost:3000/dev/api//
- Use via Postman:
POST - http://localhost:3000/dev/task
priority (0 = Low, 1 = Medium, 2 = High)
{
"name": "string",
"dateExecution": "2022-03-07T11:24:52.912Z",
"situation": true,
"priority": 0,
"dateCompletion": "2022-03-07T11:24:52.912Z"
}
GET - http://localhost:3000/dev/task
GET - http://localhost:3000/dev/task/{id}
PATCH - http://localhost:3000/dev/task/{id}
priority (0 = Low, 1 = Medium, 2 = High)
{
"name": "string",
"dateExecution": "2022-03-07T11:24:52.912Z",
"situation": true,
"priority": 0,
"dateCompletion": "2022-03-07T11:24:52.912Z"
}
DELETE - http://localhost:3000/dev/task/{id}