A service to manage todos into a local json database
- Install dependencies using npm:
$ npm install
or yarn:$ yarn
- Copy .env.example into .env and update values
- Run with npm:
$ npm start
or yarn:$ yarn start
Method | Route | Body |
---|---|---|
GET | /api/todos/ | - |
GET | /api/todos/:id | - |
POST | /api/todos/ | { "title": "Sample todo title", "description": "Some description for todo", "completed": false } |
PUT | /api/todos/:id | { "title": "Sample todo title", "description": "Some description for todo", "completed": false } |
DELETE | /api/todos/:id | - |
- To run test with npm:
$ npm test
or yarn:$ yarn test