Skip to content

drewwestrick/ivr-phone-tree-node

 
 

Repository files navigation

IVR Phone Tree: IVR for beginners. Powered by Twilio - Node.js/Express

Build Status

An example application implementing an automated phone line using Node.js and Express web framework.

Read the full tutorial here!

Local development

First you need to install either Node.js or io.js, both of which should also install npm.

  1. To run the app locally, clone this repository and cd into it.

  2. Install project's dependencies.

    npm install
    
  3. Start the development server.

    node .
    

    Alternatively you might also consider using nodemon for this. It works just like the node command, but automatically restarts your application when you change any source code files.

    npm install -g nodemon
    nodemon .
    
  4. Expose the application to the wider Internet using ngrok.

    ngrok http 3000 -host-header="localhost:3000"
    
  5. Provision a number under the Twilio's Manage Numbers page on your account. Set the voice URL for the number to http://[your-ngrok-subdomain].ngrok.io/ivr/welcome

That's it!

Run the tests

You can run the tests locally by typing

npm test

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.2%
  • CSS 14.3%
  • HTML 12.5%