Sign inSign up

demotascha/json-server

By demotascha

Updated almost 7 years ago

Fake API server based on https://github.com/typicode/json-server

Image
0

533

demotascha/json-server repository overview

json-server

Fake API server based on https://github.com/typicode/json-server

Prepare your data

Create/Update 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" }
}
To run this container looks like:
docker run -d \
      -p 80:3000  -v {pwd}:/data  \
      demotascha/json-server

Tag summary

Content type

Image

Digest

Size

27.1 MB

Last updated

almost 7 years ago

docker pull demotascha/json-server