For new development, we encourage you to use the Verify API instead of the Authy API. The Verify API is an evolution of the Authy API with continued support for SMS, voice, and email one-time passcodes, an improved developer experience and new features.
Please visit the Verify Quickstarts Page to get started with the Verify API. Thank you!
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 and NodeJS Frameworks.
-
First clone this repository and
cd
into it.$ git clone git://github.com/TwilioDevEd/account-verification-rails.git $ cd account-verification-rails
-
Install Rails the dependencies.
$ bundle install
-
Install Webpack the dependencies.
$ npm install
-
Copy the sample configuration file and edit it to match your configuration.
$ cp .env.example .env
You can find your
TWILIO_ACCOUNT_SID
andTWILIO_AUTH_TOKEN
in your Twilio Account Settings. You will also need aAUTHY_API_KEY
found at https://dashboard.authy.com/. -
Create database and run migrations.
Make sure you have installed PostgreSQL. If on a Mac, I recommend Postgres.app
$ bundle exec rails db:setup
-
Make sure the tests succeed.
$ bundle exec rails test
-
Start the 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.