Skip to content

Get a full fake REST API with zero coding in less than 30 seconds (seriously)

License

Notifications You must be signed in to change notification settings

shahedbd/jsonServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json Server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)

Installation

npm install -g json-server

Check Version

$ node -v

Format Code

  • ⇧⌥F

Create a db.json file with some data

{
  "posts": [
    { "id": 1, "title": "json-server", "author": "typicode" }
  ],
  "comments": [
    { "id": 1, "body": "some comment", "postId": 1 }
  ],
  "profile": { "name": "typicode" }
}

Start JSON Server

  • cd db.json dir

json-server --watch db.json

Now if you go to

{ "id": 1, "title": "json-server", "author": "typicode" }

Plural routes

Postman collection

Ref

About

Get a full fake REST API with zero coding in less than 30 seconds (seriously)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published