Public Repository

Last pushed: 2 years ago
Short Description
This is a node application inside a centos container which can act as a stub.
Full Description

This is a node application inside a centos container which can act as a stub. You have to POST a description json (path, method, headers, version, response) so this app can be a stub for it.

To run this image you need a mongodb linked to this image.

First:
docker run -p 27017 --name mongodb -d mongo
Second
docker run -p 3000:3000 -d --link mongodb:mongo adambalazs/centos-node-stubbroker

To add new stub, send a POST request to "localhost:3000/" with a body like:
{
"path": "/a/s?d=q",
"method": "GET",
"version": "DEV",
"contentType": "application/json",
"response": "{ \"data\": \"Hello world\", \"error\": [ ] }"
}

Docker Pull Command
Owner
adambalazs