Skip to content
This repository was archived by the owner on Sep 14, 2021. It is now read-only.

TwilioDevEd/account-verification-rails

Repository files navigation

Twilio

Important Notice

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!

Account Verification Rails

About

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.

Read the full tutorial here!

Local development

This project is built using Ruby on Rails and NodeJS Frameworks.

  1. First clone this repository and cd into it.

    $ git clone git://github.com/TwilioDevEd/account-verification-rails.git
    $ cd account-verification-rails
  2. Install Rails the dependencies.

    $ bundle install
    
  3. Install Webpack the dependencies.

    $ npm install
    
  4. Copy the sample configuration file and edit it to match your configuration.

    $ cp .env.example .env

    You can find your TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN in your Twilio Account Settings. You will also need a AUTHY_API_KEY found at https://dashboard.authy.com/.

  5. Create database and run migrations.

    Make sure you have installed PostgreSQL. If on a Mac, I recommend Postgres.app

    $ bundle exec rails db:setup
  6. Make sure the tests succeed.

    $ bundle exec rails test
  7. Start the server.

    $ bundle exec rails s
  8. Check it out at http://localhost:3000

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.

About

Account verification example application using Authy

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 10