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