Skip to content

igorogi22/task-manager

Repository files navigation

Task Manager

This project is a simple task manager, with the aim of practicing basic concepts of node, api's and streams.

To Teste It Locally

  • Run npm install to install all the necessary dependencies.
  • Run npm run start to run the application.

Routes

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

To Run Tests

  • Run npm run test to run jest tests.

Nex Steps

  • Add validation to values to update task.
  • Add tests to routes
  • Separate the file process of json middleware.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published