Pull the repository from github:
git clone [email protected]:netguru/review.git
Install required gems:
bundle install
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
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.
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