HUB
Sign inSign up

tsieprawskipega/coffeescript-mockable-http-proxy

By tsieprawskipega

•Updated about 8 years ago

Very simple http server, that is steerable (until some point) from remote.

Image
0

1.5K

tsieprawskipega/coffeescript-mockable-http-proxy repository overview

Docker Automated build Travis npm

⁠Mockable HTTP Server

Very simple http proxy, that is steerable (until some point) from remote.

By default it opens 2 ports:

  • on 0.0.0.0:31337 HTTP server routes requests according to rules defined by REST API,
  • on 0.0.0.0:31338 HTTP REST server accepts configuration.

⁠Installation

$ npm install

⁠Run unittests

$ gulp test

⁠Usage

$ coffee main.coffee
Starting public server at 0.0.0.0:31337
Starting API server at :31338

... and it will keep running.

⁠Or in docker

$ docker pull tsieprawskipega/coffeescript-mockable-http-proxy
$ docker run --rm -p 31338:31338 -p 31337:31337 tsieprawskipega/coffeescript-mockable-http-proxy

⁠REST API

Go to http://127.0.0.1:31338/ to see up-to-date documentation of methods exposed by REST API. All requests and responses use JSON as Content-Type.

Tag summary

Content type

Image

Digest

Size

79.2 MB

Last updated

over 8 years ago

docker pull tsieprawskipega/coffeescript-mockable-http-proxy