kiransabne / sms2fa-rails

SMS Two Factor Authentication implementation with Ruby on Rails and Twilio

Home Page:https://www.twilio.com/docs/tutorials/walkthrough/sms-two-factor-authentication/ruby/rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twilio

SMS Two Factor Authentication with Ruby on Rails and Twilio

An example application implementing SMS Two Factor Authentication using Twilio.

Read the full tutorial here!

Build Status Coverage Status

Local Development

This project is built using Ruby on Rails Framework.

  1. First clone this repository and cd into it.

    git clone git@github.com:TwilioDevEd/sms2fa-rails.git
    cd sms2fa-rails
  2. Install the dependencies.

    bundle install
  3. 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). You will also need a Twilio Number.

    Run source .env to export the environment variables.

  4. Create database and run migrations.

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

    bundle exec rake db:setup
  5. Make sure the tests succeed.

    bundle exec rspec
  6. Start the server.

    bundle exec rails s
  7. 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

SMS Two Factor Authentication implementation with Ruby on Rails and Twilio

https://www.twilio.com/docs/tutorials/walkthrough/sms-two-factor-authentication/ruby/rails


Languages

Language:Ruby 78.5%Language:HTML 18.4%Language:CSS 1.9%Language:JavaScript 1.3%