Centresource Rails 4+ application generator
A Centresource Interactive Agency open internal project for generating new Rails applications.
We start new Ruby on Rails projects frequently. In doing so, we end up
repeating many of the same steps. As Rubyists, we are always looking for
ways to DRY things up. This project is intended to serve as a launching
pad for new Rails applications. Perhaps most importantly, it is NOT supposed to cover everything that every Rails app will ever need, but to be a good starting place.
N.B. This project assumes you have a development environment setup that is capable of installing Rails projects. If not, start with the Rails Guides. You must also have the rvm gem installed. It also assumes that you are using SSH if you plan to make your project a Github repo. This project will use your currently installed version of Rails. While we have had good experience with recent prior versions, we recommend using Rails 5+.
Install the rvm
gem if you don’t already have it installed
`gem install rvm`
Install the preseason gem into your global gemset:
`gem install preseason`
Make sure your db is running (postgres/mysql/etc)
Install a new Rails application with:
`preseason <name_of_your_project>`
Follow the prompts to choose your database, etc.
Make a mistake? Just rm -rf
your application’s directory and repeat steps 1-4.
cd
into your application directory
Make magic happen and dreams come true.
####Note About ERB Templates
If you need to write a template that executes ERB in the context of the running script and also outputs ERB for the purposes of the generated application code, be sure to escape your application-bound ERB as <%%>
rspec:install
generator to run.Preseason is a project by the development team at the Centresource Interactive Agency in Nashville, TN. The main push for this project is from Cade Truitt, Travis Roberts, Jeremy Holland, Adam Scott, Rian Rainey, and Max Beizer
Preseason is Copyright © 2015 Centresource. It is free software, and may be redistributed under the terms specified in the LICENSE file.