Todo api is a CRUD, made using Node v6.1x.x
GET
- /todos: Return an array of objects/docs with all the Todos
- /todos/:id: Needs an id to return a single doc with the data.
POST
- /todos: Send a JSON of data to db an saved it!
DELETE
- /todos/:id: Delete a document by ID!
PATCH
- /todos/:id: Update a todo, change the timestap of completedAt, if completed is comming true.
GET
- '/users/me': Just verify if users is logged in
POST
- '/users': Sing up a new user.
- '/users/login': Logged in an user.
DELETE
- /users/me/token: Remove and clear the session of user
Requirements: MongoDB and Node
$ git clone repo
$ cd todo-rest-api
$ npm install
$ npm start
The application will start listening on port 3000
To run the test use
$ npm run test
Code with ♥ by LoconLuis