/review

Simple commit - by - commit code review application.

Primary LanguageRubyMIT LicenseMIT

Review

Code Climate Test Coverage

Circle CI

Initial setup

Pull the repository from github: git clone git@github.com:netguru/review.git

Install required gems:

bundle install

Database

Make sure you have postgress installed and running on your machine. Copy the sample database.yml to your main folder by:

cp config/database.yml.sample config/database.yml

Edit the user name in the copied file to adjust it to your database setup. Setup the database by:

rake db:setup

Then migrate your db schema from rails:

rake db:migrate

Setting up secrets

Generate a secret token:

rake secret

Paste it in the sec_config.yml file for the development enviroment and do the same for the test enviroment with a different key.

Example data

This app is heavily using github webhooks. Everytime someone pushes commit, Review will receive a payload - json data with relevant event information. Check out an example payload in db/fixtures/payload.json. Based on this data, projects and commits are created. If this concept is new to you - head over to github api documentation.

Run a dedicated task to see this in action: bundle exec rake hook:test (make sure your local server is running) test