node.js click to call example
Switch branches/tags
Nothing to show
Clone or download
sbertrand101 Update README.md
added text - outdated, will be updated soon!
Latest commit e3fa7dc Nov 17, 2017

README.md

Bandwidth Click-to-call Example

This application is outdated, but will be updated soon!

Demo app to generate Click-to-call buttons

Build Status

XO code style

Deploy

Prerequisites

Build and Deploy

One Click Deploy

Settings Required To Run

  • Bandwidth User Id
  • Bandwidth Api Token
  • Bandwidth Api Secret
  • SMTP Host Name
  • SMTP Port
  • SMTP Secure Port
  • SMTP User Name
  • SMTP Password

Deploy

Run

Directly

# Check first if mongodb and redis are started and available
# Use DATABASE_URL to specify location of db if need
# User REDIS_URL to to specify location of redis if need

export BANDWIDTH_USER_ID=<YOUR-USER-ID>
export BANDWIDTH_API_TOKEN=<YOUR-API-TOKEN>
export BANDWIDTH_API_SECRET=<YOUR-API-SECRET>
export SMTP_HOST=<YOUR-SMTP-HOST>
export SMTP_PORT=<YOUR-SMTP-PORT>
export SMTP_USER=<YOUR-SMTP-USER>
export SMTP_PASSWORD=<YOUR-SMTP-PASSWORD>


npm install # to install dependencies
npm run build # to build frontend

npm start

# Open extrnal access to port 3000 via ngrok or similar tool

Via Docker

# fill .env file with auth data first

# run the app (it will listen port 8080)
PORT=8080 docker-compose up -d

# Open access to port 8080 via ngrok or similar tool