Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Slices through the setup time for your next Rails project
Ruby HTML Other
branch: master

Massive bundle update

latest commit e7f77e4bda
Ben Caldwell authored
Failed to load latest commit information.
app Long overdue overhaul of default layout
config Added basic support for Docker and Fig
lib Remove cucumber in favour of rspec feature specs with capybara
log Initial commit
public Initial commit
spec Include devise helpers for rspec
vendor/assets Initial commit
.gitignore Use dotenv-rails to automagically load environment-based configuration
.rspec Re-ran rspec-rails install generator. rspec 3.x should work now
.ruby-version Use Ruby 2.2.0
Dockerfile Added basic support for Docker and Fig
Gemfile Massive bundle update
Gemfile.lock Massive bundle update
MIT-LICENSE Add license
Procfile Use unicorn, foreman We don't use cucumber anymore
Rakefile Initial commit Initial commit
fig.yml Added basic support for Docker and Fig


An opinionated Rails starter application that has everything you need to hit the ground running on your next project.

Dependency Status



Zangetsu is distributed as a customised generated Rails application scaffold (not as a Rails application template, which would be nice but the idea of stuffing so many customisations into a single script is a little scary).

As it's not a gem (yet), you'll need to work with the Git repository to get at the code. If you're starting a new project there are few different options here. The recommended approach is:

# create a new project directory and switch to it
mkdir my_project && cd $_

# initialise a new repository with zangetsu as an upstream remote
git init
git remote add zangetsu
git pull zangetsu/master

Zangetsu is not pre-configured for any particular DBMS (please use Postgres :bowtie:) and should work with anything Rails does. The database configuration file config/database.yml is not checked into version control, so you'll need to copy an example across and customise it before you can proceed.

cp config/database/postgresql.example.yml config/database.yml
# edit database configuration to suit
vim config/database.yml
./bin/rake db:setup --trace

For security reasons it's a good idea to generate a new secret_key_base:

./bin/rake secret | pbcopy
vim config/secrets.yml

There are loads of other configuration options for Zangetsu and it's dependencies - you'll want to check out the files in config/initializers.

Finally, here are a few tricks for starting the Rails console and web server (if you deploy on Heroku and don't already use foreman you should definitely familiarise yourself with it):

# using foreman (recommended)
./bin/foreman run ./bin/rails console

# other options (somewhat not recommended)
./bin/rails console
./bin/rails server --port 5000
./bin/unicorn --port 5000

# navigate to the application in your default browser :)
open 'http://localhost:5000/'
Something went wrong with that request. Please try again.