Skip to content

Configuring a local QA environment for testing

John McGrath edited this page Sep 26, 2016 · 1 revision

First set up the Rails app locally--details on how to do that are in the README and on the wiki page. If anything is unclear or out of date ask for help in the #dev-drive-the-vote channel.

  • Create a local admin user. You can do that by signing up (locally) as a volunteer in a supported state, then in the console promoting that user with rolify method user.add_role(:admin)
  • Set up and run ngrok locally. Twilio has a good blog post explaining how. If you leave the terminal which ngrok is running open, it'll stay in effect indefinitely.
  • Get a Twilio number, and configure it with your local ngrok URL, rather than drive.vote URL specified in the docs. The ngrok URL will look something like http://7014115a.ngrok.io. When using it to configure Twilio, don't specify a port.
  • Create a local ride zone using the Twilio number you just bought.
  • Open the dispatch view for the ride zone.

When you text the Twilio number, you should now see the SMS message appear on the dispatcher app, and you should be texted back by the DtV bot. You should also be able to respond to texts via the messaging modal in the app.

QA away, and file tickets for any bugs find, or important feature requests you see the need for. If in doubt at any point ping the dev channel in Slack. Thank you for your help!

Clone this wiki locally