Git Product home page Git Product logo

call-forwarding-node's Introduction

Twilio

Advanced Call Forwarding with Node and Express

Build status

Learn how to use Twilio to forward a series of phone calls to your state senators.

Local Development

This project is built using the Express web framework, and runs on Node.

We recommend to install Node through nvm (when possible)

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash \
nvm install node --stable

And yarn through npm.

npm install --global yarn

To run the app locally, follow these steps:

  1. Clone this repository and cd into it.

    git clone https://github.com/TwilioDevEd/call-forwarding-node.git \
    cd call-forwarding-node
  2. Install the dependencies with:

    yarn install
    
  3. Run the migrations:

    yarn run migrate
    
  4. Seed the database with data:

    yarn run seed
    

    This will load senators.json and US zip codes into your SQLite database. Please note: our senators dataset is likely outdated, and we've mapped senators to placeholder phone numbers that are set up with Twilio to read a message and hang up.

  5. Expose your application to the internet using ngrok. In a separate terminal session, start ngrok with:

    ngrok http 3000
    

    Once you have started ngrok, update your TwiML application's voice URL setting to use your ngrok hostname. It will look something like this in your Twilio console:

    https://d06f533b.ngrok.io/callcongress/welcome
    
  6. Start your development server:

    yarn start
    

    Once ngrok is running, open up your browser and go to your ngrok URL.

Run the Tests

yarn test

Meta

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

call-forwarding-node's People

Contributors

dprothero avatar smendes avatar well1791 avatar

Watchers

James Cloos avatar Kauna avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.