Skip to content

Rails4 app intended to be used as boilerplate for your own app.

Notifications You must be signed in to change notification settings

Jrakesh/rails4-kickoff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails4-Kickoff

This is a rails v4.0.2 app and can be used as a kickoff platform for your own app. The salient features are:

  • Omniauth integration with sign-in options via Facebook, Twitter and Google+.
  • Bootstrap-3 for UI.
  • I18n setup for Multi-lingual functionality.
  • HAML used as templating engine.

Installation

In the command line run:
bundle
db:migrate

This will install the gems specified in Gemfile and create the Users table in the database (the database is specified as "rails4_kickoff" change the config/database.yml to set your configuration)

Omniauth

You have to setup 3 apps: Facebook, Twitter and Google+

In config/initializers/omniauth.rb you have to paste the app keys/ids and secrets of those apps

  provider :twitter, ENV['TWITTER_KEY'], ENV['TWITTER_SECRET']
  provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET']
  provider :facebook, ENV['FACEBOOK_ID'], ENV['FACEBOOK_SECRET']

Or you can leave the file as it is and export the values from command line, for example:

  export TWITTER_KEY=xxxxxx

Omniauth Twitter Note

For twitter there is logic to redirect the user to step to complete information that twitter does not provides with omniauth such as email.

I18n

The app has an initial setup of I18n for English and Spanish


Use this code as you want! ENJOY!!

About

Rails4 app intended to be used as boilerplate for your own app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published