Rails 4 Baseline
This gem is a wrapper of a Rails Applications Template to create a new Rails 4.2 application based on the normal practices in cloudcoder.com.my. Just go through a simple wizard to get all the gems set and you'll be good to proceed with migrations and start coding your project.
This gem is heavily based on rails_wizard for the overall idea of the gem and refers to rails-composer for the code organization.
Compatibility
This gem is tested on Rails 4.2 and meant to build new Rails 4.2 app, it is unknown whether the gem is working fine in Rails 4.0.x and 4.1.x or not. The only difference at the moment is a configuration of ActiveJob for adding Delayed Job
as the background worker.
Installation
Please don't include this gem into Gemfile.
$ gem install rails_baseline
Usage
List out all available recipes:
$ rails_baseline list
The list is available to view through lib/recipes.txt as well.
Create a new Rails app:
$ rails_baseline new APP_NAME
If you want to specify a Rails version for your new Rails project:
$ rails_baseline new APP_NAME --version RAILS_VERSION
Please replace APP_NAME with your new Rails app name.
Post-Wizard Configuration
After the wizard, please configure these files according to your title, details and credentials:
- SMTP Settings:
config/environments/development.rb
andconfig/environments/production.rb
- Application Layout:
app/views/layouts/application.html.erb
- Devise initializer, modules and migration(refer to https://github.com/plataformatec/devise for more information)
- ActiveAdmin initializer and migration(refer to https://github.com/activeadmin/activeadmin for more information)
and run migration for the pending migration files:
$ rake db:create $ rake db:migrate
Changelog
- 0.0.5 - Executable file
- 0.1.0 - Rearrange wizard orders and order listing
- 0.1.1 - Added jQuery Validation, CanCanCan and Google Tag Manager
- 0.1.2 - Added Paranoia, Better Errors, Hirb and jQuery DataTables
- 0.1.3 - Added Quiet Assets, Decent Exposure, Paperclip, State Machines, Delayed Job and Kaminari
- 0.1.7 - Various fixes, and generate a static home page
- 0.2.9 - Modularize code base, removed several gems
- 0.3.10 - Refactor code, removed unused files, added optional version
Contributing
- Fork it ( https://github.com/cloudcodermy/baseline/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Test codebase by
running bin/rails_baseline new <project_name>
to make sure it runs properly - Commit your changes (
git commit -am 'Add some feature'
) without committing test rails apps - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License
Please refer to LICENSE.txt for more information