This is a template I use for my new Ruby on Rails 4 applications. Pull requests are welcome.
rails new [app_name] -m rails_startup_template/template.rb
- Adds the following gems:
- analytics-ruby: Segment.io as an anaytics provider
- bcrypt-ruby: For
encrypted_password
functionality - bourbon: Useful SASS mixins
- haml-rails: HAML templating language
- [simple_form]((https://github.com/plataformatec/simple_form): Form builder
- uuidtools: To generate UUIDs, useful for various things
- [rspec-rails]((https://github.com/rspec/rspec-rails): For writing tests
- (test environment) [capybara]((https://github.com/jnicklas/capybara): For integration testing
- (test environment) [factory_girl_rails]((https://github.com/thoughtbot/factory_girl): FactoryGirl instead of Rails fixtures
- (production environment) [rails_12factor]((https://devcenter.heroku.com/articles/rails-integration-gems): For deploying Rails 4 applications on heroku
-
Sets up foreman to deal with environment variables and background services. Instead of using
rails s
you should useforeman s
. -
Cleans up assets by renaming
application.css
toapplication.css.scss
and removing theinclude_tree
directives. It's better design to import and require things manually. For example,@import 'bootstrap';
-
Optionally installs Twitter bootstrap.
-
Optionally installs Font Awesome.
-
Initializes a new git repository.