This repository has been ARCHIVED. We at MANYC have opted to merge two of our repositories into one.
The newly merged and current repository can be found at mutual aid call center
A web api server for managing a Twilio IVR system and using airtable as a front end for configurations.
- Have NodeJS 12.16.x or greater installed
- Copy
.env-sample
to.env
(.env is git ignored)$ cp .env-sample .env
- Replace the values in your new
.env
file- PORT: The port the server will listen on
- ACCOUNT_SID: Twilio account sid
- AUTH_TOKEN: Twilio auth token
- WORKSPACE_SID: Twilio taskrouter workspace sid
- PHONE_BASE: base id for a phone Airtable base
- AIRTABLE_VM_PHONE_BASE: base id for the VM base
- AIRTABLE_DELAY: delay in milliseconds between checking the airtable bases
- AIRTABLE_API_KEY: airtable api key
- TWILIO_TASKROUTER_VM_SID: SID of the woker that represents VM
- HOST_NAME: Your hostname for example www.google.com
- Optional variables, omittance = false
- ENABLE_VM:
true
orfalse
, enables or disables voicemail recordings - ENABLE_VM_ENGLISH_TRANSCRIPTION:
true
orfalse
enables of diable transcription of english VMs - ENABLE_ANSWER_MACHINE_DETECTION:
true
orfalse
enables automatic answer machine detection (AMD) when calling volunteers
- ENABLE_VM:
- Run
$ npm install
$ npm test
- Runs the mocha test suite$ npn run debug
- Used by VSCode$ npm start
- Starts a local server using nodemon which will re-run the project on every file save$ npm run coverage
- Starts an Istanbul test coverage report.- Will generate a simplifed report to console
- Will generate and open in browser a more detailed report
- Generated files are git ignored
- A
launch.json
file is included with some settings to debug the server withi VSCode- Select 'Launch via NPM' in the debugger menu This will start a local server and attach it to vscode. Output will be in the debug console instead of terminal.
- Select 'Mocha Tests' to run the tests and attach it to the vscode debugger
- Ensure your .env file is created, heroku will load the enviroment variables
- Run
heroku local