Skip to content

dsmwebgeeks/wg-twilio-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use the Twilio API

This is the example code for a SMS app that allows you to text a phone number or see a list of top posts on Reddit!

Try texting something to (515) 532-5531 to test it out! You will probably have to text it twice, because it's hosted on Heroku's free tier (and won't respond to the first text in time for Twilio to send you a response).

You can also send a text message by visiting this site in your browser.

Developing

  • Run npm install in this directory
  • Make sure you have Heroku Toolbelt installed
  • Create your .env file with your Twilio credentials per the instructions at the top of web.js
  • Run foreman start

Deploying

  • Set up an account on Twilio
  • Use the Web Geeks promo code (announced at the dojo)
  • In this app directory, run heroku create to make a new Heroku app
  • Set Heroku's config variables for your new app:
$ heroku config:set TWILIO_ACCOUNT_SID=YOUR_TWILIO_ACCOUNT_SID
$ heroku config:set TWILIO_AUTH_TOKEN=YOUR_TWILIO_AUTH_TOKEN
  • Deploy to heroku:
$ git push heroku master
  • After creating your first phone number on Twilio, set your Messaging endpoint to whatever your new Heroku app's address is (along with the Reddit endpoint):
http://your-heroku-app.herokuapp.com/reddit

Resources

  • Twilio API -- an API that allows you to interact with phones with web-based development tools. We're going to use this API to power communication between your phone and your code.
  • Heroku -- a fast and easy way to host web apps.

About

Web Geeks November 2014 Twilio Dojo starter app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published