Skip to content

Commit e0e0a1a

Browse files
committed
Big Bang
1 parent 6b3049a commit e0e0a1a

File tree

96 files changed

+1051
-1192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1051
-1192
lines changed

Gemfile

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,54 @@
11
source 'https://rubygems.org'
22

33
ruby "2.0.0"
4-
gem 'rails', '4.0.0'
54

6-
gem 'journey', :git => 'git://github.com/rails/journey.git'
7-
gem 'arel'
8-
gem 'activerecord-deprecated_finders', :git => 'git://github.com/rails/activerecord-deprecated_finders.git'
5+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
6+
gem 'rails', '4.0.0'
97

8+
# Use Devise for user authentication
9+
gem 'devise', :git => 'git://github.com/plataformatec/devise.git', :ref => '49aebde'
1010

11-
# ORM
12-
gem "pg", :group => :production
11+
# Use sqlite3 as the database for Active Record
12+
gem 'sqlite3'
1313

14-
group :development, :test do
15-
gem "sqlite3"
16-
end
14+
# Use SCSS for stylesheets
15+
gem 'sass-rails', '~> 4.0.0'
1716

18-
gem 'json'
17+
# Use Uglifier as compressor for JavaScript assets
18+
gem 'uglifier', '>= 1.3.0'
1919

20-
# For using protected attributes
21-
gem 'protected_attributes'
20+
# Use CoffeeScript for .js.coffee assets and views
21+
gem 'coffee-rails', '~> 4.0.0'
2222

23-
# Server
24-
gem 'unicorn'
23+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
24+
# gem 'therubyracer', platforms: :ruby
2525

26-
# Template Engine
27-
gem 'haml-rails'
26+
# Use jquery as the JavaScript library
27+
gem 'jquery-rails'
2828

29-
gem "bcrypt-ruby", :require => "bcrypt"
29+
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
30+
gem 'turbolinks'
3031

31-
# Gems used only for assets and not required
32-
# in production environments by default.
33-
group :assets do
34-
gem 'sprockets-rails'
35-
gem 'sass-rails', :git => 'git://github.com/rails/sass-rails.git'
36-
gem 'coffee-rails', :git => 'git://github.com/rails/coffee-rails.git'
32+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
33+
gem 'jbuilder', '~> 1.2'
3734

38-
# gem 'therubyracer', platforms: :ruby
35+
# Twitter Bootstrap 3
36+
gem 'anjlab-bootstrap-rails', :require => 'bootstrap-rails',
37+
:github => 'anjlab/bootstrap-rails'
3938

40-
gem 'uglifier', '1.0.3'
39+
group :doc do
40+
# bundle exec rake doc:rails generates the API under doc/api.
41+
gem 'sdoc', require: false
4142
end
4243

43-
gem 'jquery-rails'
44+
# Use ActiveModel has_secure_password
45+
# gem 'bcrypt-ruby', '~> 3.0.0'
46+
47+
# Use unicorn as the app server
48+
# gem 'unicorn'
49+
50+
# Use Capistrano for deployment
51+
# gem 'capistrano', group: :development
52+
53+
# Use debugger
54+
# gem 'debugger', group: [:development, :test]

Procfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

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

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

6-
RailStrap is a Front-end / Back-end template using HTML5 Boilerplate, Twitter Bootstrap 3, Ruby on Rails (4.0.0) and Ruby 2.0.0 with a powerful authentication system for building ruby on rails websites in seconds.
5+
## Installation
76

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

10-
Clone the git repo - `git clone https://github.com/hugodias/railStrap.git` - or [download it](https://github.com/hugodias/railStrap/zipball/master)
9+
```
10+
gem install bundler
11+
```
1112

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

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

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

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

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

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

30-
##### [Twitter Bootstrap 3](http://twitter.github.com/bootstrap/index.html)
29+
* drop any existing database
30+
* create a new database
31+
* migrate the database
32+
* create a default user and admin
3133

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.
34+
Run the server and use the credentials provided by the rake task to sign in and test the application.
6935

7036
## License
7137

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)
38+
MIT License. Copyright 2010-2013 Plataforma Tecnologia. http://blog.plataformatec.com.br

Rakefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env rake
21
# Add your own tasks in files placed in lib/tasks ending in .rake,
32
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
43

-8.57 KB
Binary file not shown.
-12.5 KB
Binary file not shown.

app/assets/images/rails.png

-6.49 KB
Binary file not shown.

app/assets/javascripts/application.js

100755100644
Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1-
// Place your application-specific JavaScript functions and classes here
2-
// This file is automatically included by javascript_include_tag :defaults
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6+
//
7+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8+
// compiled file.
9+
//
10+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11+
// about supported directives.
12+
//
13+
//= require jquery
14+
//= require jquery_ujs
15+
//= require turbolinks
16+
//= require twitter/bootstrap

app/assets/javascripts/bootstrap.min.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)