Skip to content

cwsaylor/rails-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Rails Quickstart Template

This template configures a Rails 5 app for production level readiness on Heroku. It's highly opinionated about the technologies used. If you build SPA's, this is not for you. This is for those who build The Rails Way.

Gems

Requirements

  • Rails 5.0
  • Ruby 2.3.3
  • Bundler
  • Git
  • Redis
  • Memcached
  • Heroku account with Memcache, Redis, and Sendgrid addons
  • RailsPanel
  • Mailcatcher
  • Graphviz

Other nifty features

  • Generates a pages controller with an index mapped to root_url.

Usage & Installation

brew install graphviz redis memcached

git clone git@github.com:cwsaylor/rails-quickstart.git
rails new APPNAME -m ./rails-quickstart/base.rb -d postgresql
cd APPNAME
foreman start

Navigate to http://0.0.0.0:3000

You will want to secure your sidekiq job admin. http://0.0.0.0:3000/sidekiq

See here: https://github.com/mperham/sidekiq/wiki/Monitoring

Heroku Setup Notes

heroku create
heroku addons:create sendgrid:starter
heroku addons:create heroku-redis:hobby-dev
heroku addons:create memcachier:dev
heroku addons:create rollbar:free
heroku addons:create newrelic:wayne
git push heroku master
heroku run rake db:migrate
heroku restart

Set the NEW_RELIC_LICENSE_KEY and ROLLBAR_ACCESS_TOKEN environment variables in .env to use in development mode.

heroku config -s | grep ROLLBAR_ACCESS_TOKEN >> .env
heroku config -s | grep NEW_RELIC_LICENSE_KEY >> .env

Rails ERD Usage

bundle exec erd
open erd.pdf

Mailcatcher Usage

mailcatcher

Go to http://localhost:1080/

Annotate Usage

annotate

Other Awesome Gems

Thanks

I would like to thank Daniel Kehoe for the awesome Rails 3 template tutorial: http://github.com/fortuity/rails3-mongoid-devise

Copyright

Copyright (c) 2010 Christopher Saylor. See LICENSE for details.

About

For great justice, and rapid application development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published