Verify new user accounts by sending them a one-time code via Authy. Reduce fraudulent signups in your applications and ensure your users are in fact living, breathing human beings.
This project is built using Ruby on Rails Framework.
-
First clone this repository and
cd
into it.$ git clone git://github.com/TwilioDevEd/account-verification-rails.git $ cd account-verification-rails
-
Install the dependencies.
$ bundle install
-
Copy the
.env.example
file to.env
, and edit it including your credentials for the Twilio API (found at https://www.twilio.com/console/account/settings) and your Authy API Key (found at https://dashboard.authy.com/). You will also need a Twilio Number.Run
source .env
to export the environment variables. -
Create database and run migrations.
Make sure you have installed PostgreSQL. If on a Mac, I recommend Postgres.app.
$ bundle exec rake db:setup
-
Make sure the tests succeed.
$ bundle exec rake test
-
Start the development server:
$ bundle exec rails s
-
Check it out at http://localhost:3000.
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.