Skip to content

feedeo/ebba-send-api-demux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ebba's Send API Demultiplexer

JavaScript Style Guide Build Status Coverage Status Greenkeeper badge Docker Stars Docker Pulls

Demultiplex Send API requests from Ebba based on the company identifier.

Features

  • 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 ✅

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

About

Ebba's Send API Demultiplexer

Resources

License

Stars

Watchers

Forks

Packages

No packages published