Skip to content

crowdint/prdashboard

Folders and files

NameName
Last commit message
Last commit date
May 7, 2014
Mar 11, 2014
Apr 24, 2014
Mar 11, 2014
Mar 11, 2014
Mar 11, 2014
Mar 11, 2014
Apr 12, 2014
Mar 24, 2014
Mar 18, 2014
Mar 11, 2014
Mar 23, 2014
Dec 31, 2017
Dec 31, 2017
Mar 12, 2014
May 6, 2014
Mar 11, 2014
Mar 11, 2014

Repository files navigation

Build Status Coverage Status

PR Dashboard

PR Dashboard is a pull requests reviewing tool build on top of a Rails as backend service, and Ember.js as frontend framework.

It's alive

There is an instance of PR Dashboard running on prs.crowdint.com. Give it a try!

Requirements

  • Ruby 2.1.1
  • Rails 4.1.1

Github Keys

There are only two needed enviroment variables for this application. But first, you will have to create a new Github application, to do so, just go here.

For development enviroment you should set the Homepage URL as http://localhost:$PORT

After that, you will get access to your tokens.

You need to set the following enviroment variables, you could create a .env file on the application's root. That file should look like this:

GITHUB_KEY=your-key
GITHUB_SECRET=your-secret
SECRET_TOKEN=3c129645bbb2ca4b21ff1998bba2339adf86c06ea247a9086bc353ad7220c56c5af587b1a6946b
ANALYTICS_ID=your-google-analytics-id
ANALYTICS_DOMAIN=your-google-analytics-domain

The SECRET_TOKEN value is just an example.

Setup

After cloning the repo, all you need to do is:

$ bundle install
$ cp config/database.yml.postgresql config/database.yml
$ bundle exec rake db:create
$ bundle exec rake db:migrate
$ bundle exec foreman start

And you are done!

Specs

All the Rails backend is almost covered with RSpec. To run the test suite, use:

bundle exec rspec

There is also a test suite for the Ember.js frontend app. To run those specs, use:

bundle exec rake konacha:serve

And open your browser on: http://localhost:3500

It has a command line runner too, the command is:

bundle exec rake konacha:run

Contributions

Pull requests are welcome, just fork the repo, make your changes (don't forget to add tests) and send the Pull Request. That easy!