Skip to content

gbosetti/todo-list-jsonserver-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

todo-list-jsonserver-backend

Backend with json-server for https://github.com/gbosetti/todo-list-with-angular-6

This service can be used interchangeably with:

Setup

Clone the repo

git clone https://github.com/gbosetti/todo-list-jsonserver-backend.git

Install dependencies

npm install

Use

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"