Call center demo
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with BandwidthExamples:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.images
frontend
lib
tests
.editorconfig
.env-demo
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Dockerfile
ISSUE_TEMPLATE.md
PULLREQUEST.md
PULL_REQUEST_TEMPLATE.md
README.md
app.json
docker-compose.yml
package.json
yarn.lock

README.md

Call Center Node Example

Simple app to work with pools of phone numbers.

Deploy

Build Status

Prerequisites

How to get Auth0 account data

  • Go to Auth0 Dashboard, login (if required) and press "New client"
  • Enter app name and choose client type "Regular Web Applications". Press "Create".

  • Switch to tab "Settings" of created client and copy domain name, Client ID and Client Secret

  • Scroll to bottom of setting and set "Allowed Callback URLs" with https://YOUR-HOST/auth0/callback where YOUR-HOSTis name of host where this application is located.

  • Press "Save".

Build and Deploy

One Click Deploy

Settings Required To Run

  • Bandwidth User Id
  • Bandwidth Api Token
  • Bandwidth Api Secret
  • Auth0 Domain Name
  • Auth0 Client Id
  • Auth0 Client Secret

Deploy

Run

Directly

# open external access to this app (for example via ngrok)
ngrok http 3000

# in another terminal session
cd node-call-center

# configure the app
export BANDWIDTH_USER_ID=<YOUR-USER-ID>
export BANDWIDTH_API_TOKEN=<YOUR-API-TOKEN>
export BANDWIDTH_API_SECRET=<YOUR-API-SECRET>
export AUTH0_DOMAIN=<YOUR-AUTH0-DOMAIN>
export AUTH0_CLIENT_ID=<YOUR-AUTH0-CLIENT-ID>
export AUTH0_CLIENT_SECRET=<YOUR-AUTH0-CLIENT-SECRET>

# or (as alternative) fill these settings in .env file

npm install # to install dependencies

npm start # to start web app


# Open in browser url shown by ngrok

Via Docker

# open external access to this app (for example via ngrok)
ngrok http 3000

# in another terminal session
cd node-call-center

# fill .env file with right values
cp ./.env-demo ./.env
vim ./.env

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

# Open in browser url shown by ngrok