A GitHub App that reports metrics for the repository and scores each metric on a common scale.
This app is composed of two parts. The first is a Google App Engine (GAE) application in Python which collects data, computes metrics, and provides a REST API interface to retrieve them. The other is a GitHub app which queries the REST API to display the project metrics for a repository.
Follow these setup instructions to start developing for the GAE backend locally:
- Clone this repository and cd into the
project_metrics/metrics_servicedirectory - Create and activate a Python 3 virtualenv
pip install flaskto install the flask runtimepip install -r requirements.txtto install Python dependenciespip install -r requirements.txt -t third_party/to install Python dependencies into thethird_partydirectory for App Engine deployment- Run a local MySQL instance, or use the Cloud SQL Proxy
- Copy the
env.example.yamlfile toenv.yamland modify the fields based on the instructions in that file and the values from your GAE/CloudSQL instance python server.pywill start the development server locally
To add new libraries to the app:
pip install <library>to install the library in your virtualenvpip install -t third_party/ <library>to install the library inthird_partyfor App Engine deploymentpip freeze > requirements.txtto add the dependency