Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PiotrZakrzewski/merge-chance
Source code of https://merge-chance.info
https://github.com/PiotrZakrzewski/merge-chance
analysis data data-analysis open-source
Last synced: 2 months ago
JSON representation
Source code of https://merge-chance.info
- Host: GitHub
- URL: https://github.com/PiotrZakrzewski/merge-chance
- Owner: PiotrZakrzewski
- License: apache-2.0
- Archived: true
- Created: 2020-12-12T10:55:53.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-13T19:32:36.000Z (over 3 years ago)
- Last Synced: 2024-07-31T15:10:41.926Z (5 months ago)
- Topics: analysis, data, data-analysis, open-source
- Language: Python
- Homepage: https://merge-chance.info
- Size: 185 KB
- Stars: 24
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# merge-chance.info code
This is repo for the [merge-chance](https://merge-chance.info), 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](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token).
First setup a google cloud project and set following env vars:
```shell
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
```shell
gunicorn --bind :8080 --workers 1 --threads 8 --timeout 0 mergechance.main:app
```
Before first deploy to GCP run
```shell
./first_config.sh
```
in order to deploy it as a Cloud Run service on your GCP project run
```shell
./build.sh
```
This will build the container with Cloud Build and deploy it.