This application example demonstrates how to do simple phone verification with Ruby on Rails Framework, and Twilio Verify.
We are currently in the process of updating this sample template. If you are encountering any issues with the sample, please open an issue at github.com/twilio-labs/code-exchange/issues and we'll try to help you.
- Clone the project and cd into it.
git clone ...
cd verify-v2-quickstart-rails/
- Copy
.env.example
to.env
to setup you environment.
cp .env.example .env
- Edit
.env
to add your Twilio access keys.
TWILIO_ACCOUNT_SID=ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
TWILIO_AUTH_TOKEN=7axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWILIO_VERIFICATION_SID=VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- Install gem dependencies
bundle install
- Run migrations to create the database.
rails db:migrate
- Run the application.
rails server
- Check it out at http://localhost:3000
That's it!
- Run minitests
rails test
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.