|
1 | | -# Devise Example for Rails 4.0.0 |
| 1 | +[](https://travis-ci.org/hugodias/railStrap) |
| 2 | +# RailStrap v4 |
2 | 3 |
|
3 | | -Example App using devise. http://github.com/plataformatec/devise |
| 4 | +[Demo](http://railstrap03.herokuapp.com/) |
4 | 5 |
|
5 | | -## Installation |
| 6 | +RailStrap is a Front-end / Back-end template using HTML5 Boilerplate, Twitter Bootstrap 3, Ruby on Rails (4.0.0) Devise ( Auth ) and Ruby 2.0.0. |
6 | 7 |
|
7 | | -Install bundler if you haven't yet: |
| 8 | +## Quick start |
8 | 9 |
|
9 | | -``` |
10 | | -gem install bundler |
11 | | -``` |
| 10 | +Clone the git repo - `git clone https://github.com/hugodias/railStrap.git` - or [download it](https://github.com/hugodias/railStrap/zipball/master) |
12 | 11 |
|
13 | | -Install the gems: |
| 12 | +Go to your railStrap folder and run install |
| 13 | +<pre> |
| 14 | +sh install.sh |
| 15 | +</pre> |
14 | 16 |
|
15 | | -``` |
16 | | -bundle install |
17 | | -``` |
| 17 | +Then run your server |
| 18 | +<pre> |
| 19 | +rails s |
| 20 | +</pre> |
18 | 21 |
|
19 | | -This will install Rails 4.0.0, sqlite3 gem and Devise. |
| 22 | +Check at [http://localhost:3000](http://localhost:3000) |
20 | 23 |
|
21 | | -Rake devise setup task: |
| 24 | +You can try loggin in with `administrator@railstrap.com / 123123` |
22 | 25 |
|
23 | | -``` |
24 | | -rake devise:setup |
25 | | -``` |
| 26 | +## Features |
26 | 27 |
|
27 | | -This will: |
| 28 | +##### [HTML5 Boilerplate](https://github.com/h5bp/html5-boilerplate/) |
28 | 29 |
|
29 | | -* drop any existing database |
30 | | -* create a new database |
31 | | -* migrate the database |
32 | | -* create a default user and admin |
| 30 | +##### [Twitter Bootstrap 3](http://twitter.github.com/bootstrap/index.html) |
33 | 31 |
|
34 | | -Run the server and use the credentials provided by the rake task to sign in and test the application. |
| 32 | +##### [HAML Template Engine](http://haml.info/) |
| 33 | + |
| 34 | +##### [Ruby on Rails 4.0.0](http://rubyonrails.org/) |
| 35 | +* Security Authentication system |
| 36 | +* Remember me |
| 37 | +* Users CRUD |
| 38 | + |
| 39 | + |
| 40 | +### Databases support |
| 41 | + |
| 42 | +* SQLite (Default) |
| 43 | +* Postgresdb [https://github.com/hugodias/railStrap/tree/postgresdb](https://github.com/hugodias/railStrap/tree/postgresdb) |
| 44 | + |
| 45 | + |
| 46 | +### Best pratices |
| 47 | +--- |
| 48 | +Change the cookie secret token at |
| 49 | +`config/initializers/secret_token.rb` |
| 50 | +<pre> |
| 51 | +# Be sure to restart your server when you modify this file. |
| 52 | + |
| 53 | +# Your secret key for verifying the integrity of signed cookies. |
| 54 | +# If you change this key, all old signed cookies will become invalid! |
| 55 | +# Make sure the secret is at least 30 characters and all random, |
| 56 | +# no regular words or you'll be exposed to dictionary attacks. |
| 57 | +RailStrap::Application.config.secret_token = 'YOUR-NEW-TOKEN-HERE' |
| 58 | +</pre> |
| 59 | + |
| 60 | +Thanks [pringles](http://news.ycombinator.com/user?id=pringles) for the tip |
| 61 | + |
| 62 | + |
| 63 | +#### Todo |
| 64 | +--- |
| 65 | + |
| 66 | +* Include supports for redis and mongodb |
| 67 | +* Create a feature to remind the user password |
| 68 | +* Significantly reduce the amount of files from the repository, to be an extension of application and not the entire application. |
35 | 69 |
|
36 | 70 | ## License |
37 | 71 |
|
38 | | -MIT License. Copyright 2010-2013 Plataforma Tecnologia. http://blog.plataformatec.com.br |
| 72 | +### Major components: |
| 73 | + |
| 74 | +* jQuery: MIT/GPL license |
| 75 | +* Modernizr: MIT/BSD license |
| 76 | +* Normalize.css: Public Domain |
| 77 | +* Twitter bootstrap: [Apache License, Version 2.0 (the "License")](http://www.apache.org/licenses/LICENSE-2.0) |
| 78 | +* Ruby on Rails: MIT license |
| 79 | + |
| 80 | +### Everything else: |
| 81 | + |
| 82 | +The Unlicense (aka: public domain) |
0 commit comments