-
Install JSON server with command:
npm install -g json-server
-
db.json
file was created, so to watch file with json-server you have to use command:
json-server --watch db.json
copy of
db.json
was placed indb copy.json
-
To get all routes and endpoint go to
localhost:3000
in your browser.
Link to more information about
json-server
on github:
> https://github.com/typicode/json-server