Application template for starting new rails applications with the technologies I like.
- Rails 5
- Bootstrap 3
- Testing (with RSpec)
- Capybara configured for feature tests
- Factory Girl
- To automatically create git repositor, 2 environment variables need to be set:
GITHUB_TOKENcan be generated at https://github.com/settings/tokens
- export them like
- Postgres must be installed. E.g.
brew install postgreson MacOS
rails new <app name> --template speedrail/template.rb
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
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