This project is a simple task manager, with the aim of practicing basic concepts of node, api's and streams.
- Run
npm installto install all the necessary dependencies. - Run
npm run startto run the application.
POST /tasks
Insert a task in database or import a csv of tasks
Params:
{
title: string;
description: string;
}Import file:
content: multiplataform-data
Example of file to import: exampleToimport.csv
GET /tasks/:id
Get a task by id
GET /tasks
Get all tasks
PUT /tasks/:id
Update a task by id
Params:
{
title?: string;
description?: string;
}PATCH /tasks/:id/complete
Marks a task as completed
DELETE /tasks/:id
Remove a task by id
- Run
npm run testto run jest tests.
- Add validation to values to update task.
- Add tests to routes
- Separate the file process of json middleware.