Backend with json-server for https://github.com/gbosetti/todo-list-with-angular-6
This service can be used interchangeably with:
Clone the repo
git clone https://github.com/gbosetti/todo-list-jsonserver-backend.git
Install dependencies
npm install
Run node server.js
. Then, you can use the frontend application to check the service is working or use some tool like curl:
curl -X POST -H "Content-Type: application/json" -d '{"name": "demo"}' http://localhost:3000/todos
curl -X GET "http://localhost:3000/todos"