This is the base Rails app used at Brewhouse.
Assuming you want to create "my-rails-app":
1 - Clone this repo:
git clone git@github.com:BrewhouseTeam/brewhouse-rails-template.git my-rails-app
2 - Bootstrap your app (prepare config files etc...):
cd my-rails-app && ./bootstrap my-rails-app
You'll find the gems and configuration niceties that we use on most rails app we work on.
devise
with aUser
model setup and mailer previews available at/rails/mailers
simple_form
setup for bootstrap 3virtus
for building services (seeapp/services/service.rb
)schema_auto_foreign_keys
for a robust data layer where orphan records are not a thing.sidekiq
with dashboard at/sidekiq
bootstrap-sass
with a couple of defaults inapp/assets/styelsheets/_variables.scss
roadie-rails
to inline css in emails so that GMail picks up the styles.
dotenv-rails
to store config and secrets in env variablesletter_opener
to open emails in the browser in dev envfactory_girl
spring
bin-stubs in./bin
(ProTip: Add./bin
to your$PATH
)
rspec
for unit testingcucumber
withcapybara-webkit
andcapybara-screenshot
for integration testssimplecov
because test coverage matters
puma
'cause it's fastrails_12factor
to run the app on Herokuheroku-deflater
to compress assetsrollbar
to get notified about errorsnewrelic_rpm
to monitor performancesapp.json
will setup add-ons, environment variables and run migrations when you deploy to Heroku