Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pegasystems/coffeescript-mockable-http-proxy
Very simple http proxy, that is steerable (until some point) from remote.
https://github.com/pegasystems/coffeescript-mockable-http-proxy
coffeescript gulp http-proxy istanbul json nodejs npm rest-api rpc travis-ci
Last synced: 5 days ago
JSON representation
Very simple http proxy, that is steerable (until some point) from remote.
- Host: GitHub
- URL: https://github.com/pegasystems/coffeescript-mockable-http-proxy
- Owner: pegasystems
- License: apache-2.0
- Created: 2017-01-20T19:06:18.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-29T17:54:59.000Z (10 months ago)
- Last Synced: 2025-01-01T06:45:27.097Z (about 1 month ago)
- Topics: coffeescript, gulp, http-proxy, istanbul, json, nodejs, npm, rest-api, rpc, travis-ci
- Language: CoffeeScript
- Homepage:
- Size: 55.7 KB
- Stars: 1
- Watchers: 7
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
README
[![Docker Automated build](https://img.shields.io/docker/automated/tsieprawskipega/coffeescript-mockable-http-server.svg)](https://hub.docker.com/r/tsieprawskipega/coffeescript-mockable-http-proxy/)
[![Travis](https://img.shields.io/travis/pegasystems/coffeescript-mockable-http-proxy.svg)](https://travis-ci.org/pegasystems/coffeescript-mockable-http-proxy)
[![npm](https://img.shields.io/npm/v/coffeescript-mockable-http-server.svg)](coffeescript-mockable-http-server)# 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`.