Skip to content

demandforce/clicktocall-node

 
 

Repository files navigation

Click to Call - Node.js

An example application implementing Click to Call using Twilio. For a step-by-step tutorial, visit this link.

Deploy this example app to Heroku now!

Deploy

Installation

Step-by-step on how to deploy, configure and develop on this example app.

Fastest Deploy

Use Heroku to deploy this app immediately:

Deploy

Getting Started

  1. Grab latest source
git clone git://github.com/TwilioDevEd/clicktocall-node.git 
  1. Navigate to folder and create new Heroku Cedar app
heroku create
  1. Deploy to Heroku
git push heroku master
  1. Scale your dynos
heroku scale web=1
  1. Visit the home page of your new Heroku app to see your newly configured app!
heroku open

Configuration

Setting Your Environment Variables

Are you using a bash shell? Use echo $SHELL to find out. For a bash shell, using the Gmail example, edit the ~/.bashrc or ~/.bashprofile file and add:

export TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxx
export TWILIO_AUTH_TOKEN=yyyyyyyyyyyyyyyyy
export TWILIO_NUMBER=+15556667777

Are you using Windows or Linux? You can read how to set variables here.

Development

Getting your local environment setup to work with this app is similarly easy. After you configure your app with the steps above, use this guide to get going locally:

  1. Install the dependencies.
npm install
  1. Launch local development webserver
node app.js
  1. Open browser to http://localhost:3000.

  2. Tweak away on routes/index.js.

Meta

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

About

Node.js Click To Call Demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 87.7%
  • JavaScript 12.3%