Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/djpowers/rails_app_template
Template for new Rails projects
https://github.com/djpowers/rails_app_template
Last synced: about 1 month ago
JSON representation
Template for new Rails projects
- Host: GitHub
- URL: https://github.com/djpowers/rails_app_template
- Owner: djpowers
- Created: 2014-06-01T02:19:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-27T21:17:33.000Z (over 10 years ago)
- Last Synced: 2024-10-16T07:50:01.253Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 176 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# djpowers' Rails App Template
### Purpose
This script is an [Rails Application Template](http://guides.rubyonrails.org/rails_application_templates.html), which can be run by passing the template option (-m), followed by the file path or URL of the script upon creation of a new Rails app: ```rails new example_app -m https://raw.githubusercontent.com/djpowers/rails_app_template/master/app_template.rb```### Customizations
This script will make the following changes:
* Use Markdown instead of RDoc for the README
* Create a developement/test gem group with the following:
* pry-rails
* rspec-rails
* capybara
* factory_girl_rails
* shoulda-matchers
* valid_attribute
* Create a development gem group with the following:
* better_errors
* binding_of_caller
* quiet_assets
* Install gems
* Generate RSpec files
* Prompt to create a root controller
* Initialize Git
* Add all files to Git and commit#### Used in conjuction with .railsrc file to override defaults
```
-T # skips making the test unit folders (I use rspec)
-d postgresql # defaults my development database to PostgreSQL instead of SQLite3
```### Resources
* Railscasts episode [\#148 Custom App Generators (revised)](http://railscasts.com/episodes/148-custom-app-generators-revised)
* [RailsGuides: Creating and Customzing Rails Generators & Templates](http://guides.rubyonrails.org/generators.html)
* [How To Configure Your "$ Rails New" Defaults](http://natashatherobot.com/how-to-configure-your-rails-defaults/)