Basic rails app with all necessary tools set up to get up to speed fast
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app/assets/stylesheets
dotfiles
spec
README.md
circle.yml
template.rb

README.md

Speedrail

Application template for starting new rails applications with the technologies I like.

Includes:

  1. Rails 5
  • Bootstrap 3
  1. Testing (with RSpec)
  • Capybara configured for feature tests
  • Factory Girl
  • Pry

Usage

Prerequisites:

  1. To automatically create git repositor, 2 environment variables need to be set: GITHUB_USER and GITHUB_TOKEN.
  1. Postgres must be installed. E.g. brew install postgres on MacOS
rails new <app name> --template speedrail/template.rb

Tips

To set global defaults for new rails projects, create ~/.railsrc with suitable command line flags for you. Mine are:

--skip-test-unit
--skip-bundle
--database=postgresql
--skip-keeps

Future developments

Currently this is just plain rails app with couple cleanup & added gems. Cleaner solution would be to package it as a gem and provide generators with configurations.

Features to add:

  • instead of hard copy, see how it could be implemented using rails generators
  • automatic CI integration
  • setting application name