An open API service indexing awesome lists of open source software.

https://github.com/jonathanwthom/texting-app

Rails app implementing the Twilio API
https://github.com/jonathanwthom/texting-app

Last synced: 5 months ago
JSON representation

Rails app implementing the Twilio API

Awesome Lists containing this project

README

          

# 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](https://www.twilio.com/blog/2013/10/test-your-webhooks-locally-with-ngrok.html)
8. ```rails s```

### Tech

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