Sign inSign up

williamyeh/json-server

By williamyeh

Updated almost 8 years ago

A minimal JSON Server image (less than 30 MB) - Get a full fake REST API with zero coding

Image
6

100K+

williamyeh/json-server repository overview

Dockerized JSON Server

Circle CI Build Status

Summary

Repository name in Docker Hub: williamyeh/json-server

This repository contains Dockerized JSON Server, published to the public Docker Hub via automated build mechanism.

Configuration

This docker image contains the following software stack:

  • Alpine 3

  • Node.js 10

  • JSON Server

Total image size is less than 30 MB.

Dependencies
History
  • 1.0 - Initial release.
  • 1.1 - Updated base image and json-server version.
  • 1.1.1 - Add '--host' cli arguments for convenience.

Installation

$ docker pull williamyeh/json-server

Usage

Show usage
$ docker run --rm williamyeh/json-server
Server example
$ docker run  \
      -p 3000:3000  -v `pwd`:/data  \
      williamyeh/json-server        \
      --watch db.json
More examples

Most examples documented in JSON Server project site will work.

Tag summary

Content type

Image

Digest

Size

24.7 MB

Last updated

almost 8 years ago

docker pull williamyeh/json-server