Giter Site home page Giter Site logo

bear-traffic-control's Introduction

BearTrafficControl

A Rails starter template

Amalgamated from BigBinary's Wheel, Thoughtbot's Suspenders and Upcase - with Stripe subscription billing out of the box.

Circle CI

Code Climate

Coverage Status

Features

  • Uses Bootstrap
  • rake setup to set sample data
  • Default admin user: [email protected] with password welcome
  • Uses devise for authentication
  • Oauth with Facebook, LinkedIn and Google preset - just add keys and secrets
  • Heroku ready
  • Full support for subscription billing with Stripe, including plans, trials, checkouts, cancellations, feature restriction, invoices and email notifications
  • Uses modal box to showcase an example of editing information using modal box
  • Enables strict mode for all JavaScript code
  • Uses unicorn for staging and production
  • Uses thin for development and test
  • A ribbon at the top for non-production environment - green for development, orange for staging
  • Uses haml for cleaner syntax over erb
  • Uses Javascript instead of Coffeescript
  • No Turbolinks
  • Uses ActiveAdmin.
  • Uses DelayedJob
  • Intercepts all outgoing emails in non production environment using gem mail_interceptor
  • Uses CircleCI for continuous testing
  • Uses Coveralls for test coverage metrics
  • Uses CodeClimate
  • Uses Hound for automated style checking
  • Uses Airbrake for error reporting
  • Has a bunch of tests to make it easier to get started with new tests
  • Uses PostgreSQL
  • Support for Segment.io
  • Support for Twilio
  • Built in support for carrierwave to easily upload items to Amazon S3
  • Built in support for "variants" so the pages can be customized for tablet or phone easily
  • Uses simple_form
  • Built in support for Mandrill
  • Content compression via Rack::Deflater

Setup

bundle install
cp config/database.yml.postgresqlapp config/database.yml
rake setup
bundle exec rails server

Replace BearTrafficControl with your project name

Replace all occurrences of "BearTrafficControl" with your own project name.

Let's say that the project name is "Chainsaw". Execute the command below:

 perl -e "s/BearTrafficControl/Chainsaw/g;" -pi $(find . -type f)

Setup Stripe

  • Create Stripe Account
  • Add test keys to secrets.yml
  • Create default plans:
    • free
    • lite
    • standard
    • professional
    • team
    • annual
  • Add a test endpoint:
    • Mode: test
    • URL: <staging-url>/stripe-webhook
    • Events: Select Events
      • invoice.payment_succeeded
      • customer.subscription.updated
      • customer.subscription.deleted
  • Add live keys as ENV['STRIPE_PUBLISHABLE_KEY'] and ENV['STRIPE_PUBLISHABLE_KEY'] on production deployment
  • Add a live endpoint with production url and mode: live

bear-traffic-control's People

Contributors

heyogrady avatar

Watchers

 avatar  avatar

bear-traffic-control's Issues

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.