Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.76 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.76 KB

<<<<<<< HEAD

Rails Bootstrap Base Application

Overview

Rails Bootstrap Base App was made as a quick way to DRY up the development process for projects needing some basic web application functionality. It includes a basic design, authentication, authorization and some seed data. It also started as an attempt to integrate Twitter's Bootstrap HTML5 kit with Rails. The goal would be to eventually extract the entire project as a gem.

Features

  • Layout - Twitter's Bootstrap, twitter/bootstrap
  • Authentication - Devise, platformatec/devise
  • Authentication Token - uses the Devise auth token feature, for API access
  • Authorization - Canan, ryanb/cancan
  • Feedback - Simple feedback application to test API and secure pages
  • Seed data - Seed data to kick start users for authentication and authorization.

Installation

  • Clone the git repository
  • Create your database
  • Update the database.yml with correct credentials
  • rake db:migrate
  • rake db:seed
  • rails s

Usage

curl -X GET "http://localhost:3000/users/1.json" -u "[email protected]:secret"
  • Then use auth token to make secure request rather than using username and password each time. Auth token will remain static unless changed in the user model.
curl -X GET "http://localhost:3000/feedbacks/1.json?auth_token=<authentication_token>"

Todo

linkedin

f269265777ed65519f5a31bfa46712fbea5abff4