Skip to content

dalegregory/base

 
 

Repository files navigation

Dev Fu! Base build status code quality code quality

A template for creating rails 4.2 applications.

Environment Variables

In development & test, environment variables are loaded from .env

  • EMAIL_HOST: hostname to use in email links
  • SECRET_TOKEN: secret token for rails
  • UNICORN_WORKERS: number of unicorn workers to start

Omniauth Providers

  • FACEBOOK_APP_ID
  • FACEBOOK_SECRET
  • GITHUB_APP_ID
  • GITHUB_SECRET

Development

Prerequisites

  • ruby 2.1.5+ # rvm install 2.1.5 (older versions of ruby may work, but aren't recommended)
  • bundler
  • postgresql # http://postgresapp.com
$ git clone [email protected]/devfu/base.git
$ cd base
$ bundle
$ cp {sample,}.env                  # edit this file
$ cp Procfile.local{.sample,}       # edit this file
$ cp config/database.yml{.sample,}  # edit this file
$ bundle exec rake db:setup
$ bundle exec rake spec
$ foreman start -f Procfile.local

Testing

Prerequisites

  • phantomjs # brew install phantomjs

Tools used:

  • rspec
  • capybara
  • factory girl
  • poltergeist
rake spec # this will run all of the RSpec specifications, located in ./spec
  • Specs are organized into model & feature specs (/spec/models, /spec/features)
  • Factories are located in /spec/factories.rb

Deploy

Recommended deployment is via Heroku. They have an excellent intro at http://docs.heroku.com/quickstart

Deploy

Addons

We're using the following heroku addons

  • heroku-postgresql:hobby-dev
  • memcachier:dev
  • newrelic:wayne
  • papertrail:choklad
  • pgbackups:plus
  • sendgrid:starter

Environment Variables

Use the heroku config command to check/set environemnt variables on Heroku.

Contributors

Developed by Dev Fu!, LLC

About

Rails 4.2 base app

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 74.7%
  • HTML 22.0%
  • CSS 2.2%
  • Other 1.1%