PiotrZakrzewski / merge-chance

Source code of https://merge-chance.info

Home Page:https://merge-chance.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

merge-chance.info code

This is repo for the merge-chance, page where you can checks success rate for your favorite open-source project on GitHub.

if you just want to make some plots for given repo locally, use scripts from the scripts dir.

Build & Setup

You will need a GitHub token, in order to extract data from GitHub instructions.

First setup a google cloud project and set following env vars:

export GCP_PROJECT=YOUR_PROJECT
export GCP_REGION=DESIRED_REGION
export GH_TOKEN=YOUR_GITHUB_TOKEN

Then create a service account with admin rights to your project's firestore. Save the json key to this service account as key.json in current dir. Run the app locally with

 gunicorn --bind :8080 --workers 1 --threads 8 --timeout 0 mergechance.main:app

Before first deploy to GCP run

./first_config.sh

in order to deploy it as a Cloud Run service on your GCP project run

./build.sh

This will build the container with Cloud Build and deploy it.

About

Source code of https://merge-chance.info

https://merge-chance.info

License:Apache License 2.0


Languages

Language:Python 89.7%Language:HTML 8.3%Language:Dockerfile 1.1%Language:Shell 0.9%