Coder Social home page Coder Social logo

redsteel's Introduction

Red Steel

Build Status

Don't let living together get in the way of living together.

Setup

We are using Ruby v2.1.2, managed through RVM; sqlite3; and PhantomJS. To setup your system for development, follow the guides below to success. If something doesn't work (or your OS is missing), feel free to update this README ;)

OSX Specific

  1. Install Xcode or Xcode Developer Tools:
  • Download Xcode form the App Store, OR
  • xcode-select --install
  1. Install Homebrew:
  • ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
  • brew update
  1. Setup RVM:
  • \curl -sSL https://get.rvm.io | bash -s stable --ruby
  1. Setup ruby: rvm install ruby-2.1.2 and rvm use ruby-2.1.2
  2. Setup PhantomJS
  • brew install phantomjs

All Systems

  1. Install gems: bundle install
  2. Setup your environment variables:
  • create a file in the application root: .env
    • The format of the file is Key=Value, with a newline separating each key.
    • All required keys are below. If a correpsonding value is not specified, talk to Jesse to get the value.
  • Cookie Secret:
    • Key = SECRET_KEY_BASE, Value = result of rake secret
  • Default production admin user:
    • Key = ADMIN_NAME, Value = anything you want
    • Key = ADMIN_EMAIL, Value = anything you want
    • Key = ADMIN_PASSWORD, Value = anything you want
  • Mandrill:
    • Key = MANDRILL_USERNAME
    • Key = MANDRILL_APIKEY
  • Facebook:
    • Key = FACEBOOK_ID
    • Key = FACEBOOK_SECRET
  • Twitter:
    • Key = TWITTER_ID
    • Key = TWITTER_SECRET

Run

  1. bundle exec guard
  2. Feel special!
  3. exit to quit (not ctrl+c! That only works with rails s)

Tests

  • To run all tests: rake
  • To run a specific test file: rake test TEST=test/models/widget_test.rb
  • To run a specific test within a file: ruby -Ilib:test test/models/widget_test.rb -n test_0003_refreshes

Code Quality

  • To run all code quality metrics: rake quality
  • There are lots of different tests you can run individually:
    • rake quality:reek
    • rake quality:flog
      • rake quality:average - checks that the average flog score is below a set threshold
      • rake quality:each - indicates which methods are above a set threshold
    • rake quality:flay
    • rake quality:rails_best_practices

Useful Things

  • You'll see a link to this on every PR, but if you ever feel like checking in on our Continuos Integration, head on over to Snap!
  • Our story management is handled by Trello! Don't forget to name branches after the story codes.

redsteel's People

Stargazers

Fabricio Konell avatar

Watchers

Joe avatar James Cloos 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.