Skip to content

koedbymonkey/base

Repository files navigation

Dev Fu! Base build status code quality code quality

A template for creating rails 4.1 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

Development

Prerequisites

$ git clone git@github.com/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 3.2 base app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published