Skip to content

Commit 590e4dc

Browse files
committed
Readme
1 parent e0e0a1a commit 590e4dc

File tree

1 file changed

+67
-23
lines changed

1 file changed

+67
-23
lines changed

README.md

Lines changed: 67 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,82 @@
1-
# Devise Example for Rails 4.0.0
1+
[![Build Status](https://api.travis-ci.org/hugodias/railStrap.png)](https://travis-ci.org/hugodias/railStrap)
2+
# RailStrap v4
23

3-
Example App using devise. http://github.com/plataformatec/devise
4+
[Demo](http://railstrap03.herokuapp.com/)
45

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.
67

7-
Install bundler if you haven't yet:
8+
## Quick start
89

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)
1211

13-
Install the gems:
12+
Go to your railStrap folder and run install
13+
<pre>
14+
sh install.sh
15+
</pre>
1416

15-
```
16-
bundle install
17-
```
17+
Then run your server
18+
<pre>
19+
rails s
20+
</pre>
1821

19-
This will install Rails 4.0.0, sqlite3 gem and Devise.
22+
Check at [http://localhost:3000](http://localhost:3000)
2023

21-
Rake devise setup task:
24+
You can try loggin in with `administrator@railstrap.com / 123123`
2225

23-
```
24-
rake devise:setup
25-
```
26+
## Features
2627

27-
This will:
28+
##### [HTML5 Boilerplate](https://github.com/h5bp/html5-boilerplate/)
2829

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)
3331

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.
3569

3670
## License
3771

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

Comments
 (0)