Demultiplex Send API requests from Ebba based on the company identifier.
- Launch 🚀 inside a Docker container 🐳 so you don't need to manage the dependencies 🙌 ✅
- Quickly deploy 🏃 and easily scale 👬 the number of servers by using Rancher ✅
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
Swagger documentation available http://localhost:5928/docs
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 |
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