Sign inSign up

rubs33/light-mock-server

By rubs33

•Updated about 8 years ago

Light HTTP mock server.

Image
1

174

rubs33/light-mock-server repository overview

⁠Description

This project provides a simple configurable HTTP mock server.

https://github.com/rubs33/light-mock-server⁠ https://www.npmjs.com/package/light-mock-server⁠

⁠Examples

Example of use in docker-compose:

version: "3"
services:
    mock1:
        image: rubs33/light-mock-server
        command: "--config='{\"routes\": [ {\"path\": \"/foo\", \"body\": \"bar\"} ]}'"
        ports:
            - 3000:3000
    mock2:
        image: rubs33/light-mock-server
        command: "--config='{\"routes\": [ {\"path\": \"/bar\", \"body\": \"foo\"} ]}'"
        ports:
            - 3001:3000
    mock3:
        image: rubs33/light-mock-server
        volumes:
            - .:/tmp
        command: "--file='/tmp/example.json'"
        ports:
            - 3002:3000

When you start docker-compose, you will be able to call:

Tag summary

Content type

Image

Digest

Size

24.5 MB

Last updated

about 8 years ago

docker pull rubs33/light-mock-server