/welaika-suspenders

A CLI for creating Rails apps with weLaika's standard defaults.

Primary LanguageRubyMIT LicenseMIT

weLaika's Suspenders Build Status

This is a suspenders fork in use at weLaika. Big thanks to thoughtbot for providing such a great starting point.

Installation

First install the suspenders gem:

gem install welaika-suspenders

If you are using RVM, please before create a new gemset named like projectname:

rvm gemset create projectname
rvm gemset use projectname

If you want to use heroku, please install the heroku toolbelt and run

heroku login

Then run:

welaika-suspenders projectname

This will create a Rails app in projectname using the latest version of Rails.

You can optionally specify alternate Heroku flags:

welaika-suspenders projectname \
  --heroku true \
  --heroku-flags "--region eu --addons sendgrid,ssl"

See all possible Heroku flags:

heroku help create

This will create a rails app in projectname. This script creates a new git repository. It is not meant to be used against an existing repo.

cd projectname && bin/setup

If you want to add an empty bare repository as origin, run

git remote add origin git@github.com:welaika/projectname.git

Version number

welaika-suspenders version number isn't related to thoughbot's suspenders.

Changelog

We merge commits from thoughbot's suspenders periodically.

List of changes we made since this is commit:

  • remove host key in database.yml
  • add priscilla gem
  • add rails-i18n gem and use italian, english as available locales
  • add letter_opener gem
  • add faker gem
  • remove segment.io javascript code
  • add slim-rails gem
  • add some html meta tags
  • use EU region as default for Heroku
  • use CDATA wrapper for javascript
  • create a .ruby-gemset file with app name
  • create common folders like app/queries, app/services, etc.
  • use application.sass instead of application.scss
  • add brakeman gem
  • set Rome as time_zone
  • set :it as default_locale
  • add simplecov
  • add simplecov-json
  • add fixtures helper for rspec
  • add queries helper for rspec
  • configure asset host for capybara
  • add helpers for capybara (page!, screenshot!)
  • drop support for IE 9 in AutoPrefixer
  • remove hound configuration
  • add draper gem and rename presenters folder to decorators
  • add rubocop and a template of .rubocop.yml
  • change rake default task: now includes rubocop and brakeman too
  • prefer a single file for each factory_girl factories
  • remove new-relic
  • add email-validator gem
  • remove circle-ci
  • remove bitters and refills
  • lint factory girl's factories
  • remove automatic deployment
  • use airbrake instead of honeybadger
  • use coffeescript instead of es6