json-serveur
json-server --watch db.json
Disgusted Dragonfly
json-server --watch db.json
npm install -g json-server
#Install JSON Server
npm install -g json-server
#Start JSON Server
json-server --watch db.json
{
"posts": [
{ "id": 1, "title": "json-server", "author": "typicode" }
],
"comments": [
{ "id": 1, "body": "some comment", "postId": 1 }
],
"profile": { "name": "typicode" }
}