json server port code example
Example 1: json server
json-server --watch db.json
Example 2: json server npm
npm install -g json-server
Example 3: json server npm
json-server --watch db.json
Example 4: json server
{
"posts": [
{ "id": 1, "title": "json-server", "author": "typicode" }
],
"comments": [
{ "id": 1, "body": "some comment", "postId": 1 }
],
"profile": { "name": "typicode" }
}