https://github.com/feedeo/ebba-send-api-demux
Ebba's Send API Demultiplexer
https://github.com/feedeo/ebba-send-api-demux
Last synced: 8 months ago
JSON representation
Ebba's Send API Demultiplexer
- Host: GitHub
- URL: https://github.com/feedeo/ebba-send-api-demux
- Owner: feedeo
- License: mit
- Created: 2017-10-17T12:54:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-30T10:53:53.000Z (about 6 years ago)
- Last Synced: 2025-01-14T13:18:34.135Z (over 1 year ago)
- Language: JavaScript
- Size: 262 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ebba's Send API Demultiplexer
[](http://standardjs.com/)
[](https://travis-ci.org/feedeo/ebba-send-api-demux)
[](https://coveralls.io/github/feedeo/ebba-send-api-demux?branch=master)
[](https://greenkeeper.io/)
[](https://github.com/feedeo/ebba-send-api-demux/releases)
[](LICENSE)
[](https://hub.docker.com/r/feedeo/ebba-send-api-demux/)
[](https://hub.docker.com/r/feedeo/ebba-send-api-demux/)
Demultiplex Send API requests from Ebba based on the company identifier.
### Features
* Launch :rocket: inside a Docker container :whale: so you don't need to manage the dependencies :raised_hands: :white_check_mark:
* Quickly deploy :runner: and easily scale :two_men_holding_hands: the number of servers by using Rancher :white_check_mark:
### How to use
#### Use it in your terminal
Run the Docker image in a container exposing port `5928`
```
docker run -d -p "5928:3000" -e COMPANY_BASE_URLS="{\"my-company-id\": \"http://localhost:8080/send\"}" feedeo/ebba-send-api-demux
```
#### Available REST API endpoints
Swagger documentation available `http://localhost:5928/docs`
#### Available environment variables
Variable | Description | Required | Default value
:---:|:---:|:---:|:---:
COMPANY_BASE_URLS | Mapping (JSON object) between company identifiers and their base URLs. | false | `{}`
PORT | The port to be used by the HTTP server. | false | `3000`
LOG_LEVEL | The log level verbosity. | false | `info`
ENVIRONMENT | The environment the app is running on. | false | `undefined`
ROLLBAR_API_KEY | The server API key used to talk with Rollbar. | false | `undefined`
### How to build
Clone the GitHub repo
```
git clone https://github.com/feedeo/ebba-send-api-demux.git
```
Change current directory
```
cd ebba-send-api-demux
```
Install dependencies
```
npm install
```
Run the NPM script that will build the Docker image
```
npm run build
```