Coder Social home page Coder Social logo

phongnh / brewhouse-rails-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mctaylorpants/brewhouse-rails-template

0.0 3.0 0.0 110 KB

A base rails app with good gems and config

Home Page: https://brewhouse-rails-template.herokuapp.com/

Ruby 26.79% JavaScript 0.26% CSS 19.97% HTML 52.89% Gherkin 0.09%

brewhouse-rails-template's Introduction

Brewhouse Rails Template

Circle CI Dependency Status

This is the base Rails app used at Brewhouse.

Usage

Assuming you want to create "my-rails-app":

1 - Clone this repo:

git clone [email protected]:BrewhouseTeam/brewhouse-rails-template.git my-rails-app

2 - Bootstrap your app (prepare config files etc...):

cd my-rails-app && ./bootstrap my-rails-app

What's in there?

You'll find the gems and configuration niceties that we use on most rails app we work on.

The basics

  • devise with a User model setup and mailer previews available at /rails/mailers
  • simple_form setup for bootstrap 3
  • virtus for building services (see app/services/service.rb)
  • schema_auto_foreign_keys for a robust data layer where orphan records are not a thing.
  • sidekiq with dashboard at /sidekiq
  • bootstrap-sass with a couple of defaults in app/assets/styelsheets/_variables.scss
  • roadie-rails to inline css in emails so that GMail picks up the styles.

Dev env

  • dotenv-rails to store config and secrets in env variables
  • letter_opener to open emails in the browser in dev env
  • factory_girl
  • spring bin-stubs in ./bin (ProTip: Add ./bin to your $PATH)

Test

  • rspec for unit testing
  • cucumber with capybara-webkit and capybara-screenshot for integration tests
  • simplecov because test coverage matters

Production

  • puma 'cause it's fast
  • rails_12factor to run the app on Heroku
  • heroku-deflater to compress assets
  • rollbar to get notified about errors
  • newrelic_rpm to monitor performances
  • app.json will setup add-ons, environment variables and run migrations when you deploy to Heroku

brewhouse-rails-template's People

Contributors

patdryburgh avatar pcreux avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.