/texting-app

Rails app implementing the Twilio API

Primary LanguageHTML

Weather Texter

Jonathan Thom

This is a Ruby on Rails app in process.

Current Features

  1. Will allow my Twilio account to text validated numbers.
  2. You can add contacts and text them (but again, numbers must be validated).
  3. Validated numbers can text the app "weather " to receive a forecast. They can add "long" to the text to receive an extended forecast.

Future Features

  1. Perhaps adding a paid tier to Twilio, so I can validate other numbers through the app.
  2. Deploy to Heroku and use that enpoint, rather than ngrok locally, to receive text messages.
  3. Deploy to Heroku and use the Heroku scheduler OR ActionJob/sidekiq to send weather updates every day.

I made this app on the day that S3 went down, so currently Heroku is MIA

Installation

  1. Clone
  2. rake db:setup
  3. bundle install
  4. Insert TWILIO_AUTH_TOKEN, TWILIO_ACCOUNT_SID, SAMPLE_RECEIVER_PHONE_NUMBER, SAMPLE_SENDER_PHONE_NUMBER into .env file
  5. Insert twilio_sid, twilio_token, and twilio_number in config/secrets.yml (could probably refactor this or the .env file out)
  6. ./ngrok 3000
  7. You may need to change the inbound route at this point. See this article
  8. rails s

Tech

  • Ruby on Rails
  • Twilio API
  • Open Weather API
  • Many cool gems
  • Testing: Rspec, Capybara, PhantomJS, Simplecov, VCR.