Skip to content

kortirso/pullmetry

Repository files navigation

PullKeeper

pullkeeper.dev (or just PullKeeper) is a platform where software developers can get statistics of their pull requests in different repositories and collection of repositories, statistics contains data about approves, comments, changed lines of codes and other.

Installation

$ bundle install
$ rails db:create
$ rails db:schema:load
$ rails db:seed
$ yarn install
$ EDITOR=vim rails credentials:edit

Credentials

If you would like to run application locally or on your production server you need to generate new config/master.key and use config/credentials.yml.example for updating config/credentials.yml.enc with your api keys.

Running application locally

foreman s

Running application locally in production environment

For running production env locally you can call

bin/local-production

Testing

Unit tests

$ rspec

E2E tests

With browser

$ rails server -e test -p 5002
$ yarn cypress open --project ./spec/e2e

Headless

$ rails server -e test -p 5002
$ yarn run cypress run --project ./spec/e2e

Sensitive information leaks

$ bearer scan .

Application layers

contracts - model schemas for validators schemas - model schemas for validating controller params validators - model validations forms - service object to interact with user form input

deliveries, notifiers - delivery layer with different providers

queries - separated database queries services - business logic layer policies - authorization logic

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Please see the LICENSE file in our repository for the full text.