## Start server
To start the server you can just do
npm start && bower install
This will server static files under public
folder and will listen to several endopoint to allow clients interact w/ the data
All these endpoints will start locally w/ http://localhost:3000
Example: http://localhost:3000/tasks
curl http://localhost:3000/tasks
Get List ALL tasks
Get specific taks per id
Get done tasks
Get pending tasks
curl --data "title=buy cars" http://localhost:3000/tasks
[POST] tasks
(http://localhost:3000/tasks)
To add a task. It only need a title
value. The rest of the values (done
, createdAt
, id
) will be added automatically
curl -X "PUT" --data "done=true" http://localhost:3000/task/2394723sdfasdsa
To update a task. It needs to receive one or more of the following values: done
, title
(even if not all are being updated). The rest value completedAt
, createdAt
will be added automatically
curl -X "DELETE" http://localhost:3000/task/asf830q34ks3
To remove a task. Only by passing an id the task will be removed.