Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Tool for setting up a new project quickly

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 bnr-generator.gemspec
README.md

BNR-Generator

Generate Rails projects the way we like them.

Dependencies

The capybara-webkit gem which the generator installs dependes on QT being installed. On OSX with Hombrew run brew install qt to make sure QT is installed.

Installation

 gem install bnr_generator

 # if you are using rbenv
 rbenv rehash

Usage

 # create a new project
 bnr new NAME

 # specify the database type
 bnr new NAME --database=DATABASE

 # Don't create a heroku app
 bnr new NAME --host=none

 # Don't use rvm
 bnr new NAME --ruby=none

 # get help, see all options
 bnr help

Notes

If you are using heroku to host your app, be sure you have added your ssh key to heroku and have run heroku auth:login prior to running bnr new.

If the database you choose relies on a server, make sure that the server is running prior to running bnr new so that the new database can be created.

What's included?

  • Rails of course, currently the 3.2 branch
  • Postgres all your database needs
  • Heroku for deployment ease, a Heroku app will automatically be created for you.
  • Slim for templating goodness

The testing stack includes :

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.