This is a simple textbot to help anyone manage a simple list, such as to-do, grocery, reminders, etc. The bot has two components: API/backend to manage requests, and Twilio Studio Flow to manage the user workflow.
- Ruby 2.6.5
- Rails 6.0.2
- Postgres 12
- Twilio SMS phone #
- devise
- twilio-ruby
- annotate (for annotating database schema on model files)
- Fill in
config/database.yml - Do the usual
rails db:migrateandrails sto get localhost running - You can test the API endpoints (without Twilio Studio Flow) via Postman. Details are in each controller.
Note that at this point, you won't get an SMS yet. The Flows are the entry points to receive / send SMS.
- Get Twilio auth token and fill in
config/api_keys.yml - Setup ngrok so Twilio can talk to your localhost via public internet
- We need to import the Flow (coming soon!)
Everything is pre-configured to deploy to EBS. I wrestled a bit because EBS wasn't playing nice with Rails 6 dependencies, but you shouldn't have any issues deploying this repo directly to EBS. Please follow instructions here and a bunch of content on the web about how to deploy.