1.1 Clone the repository:
git clone https://github.com/wojciech-pawlik/gh-analyzer.git
1.2 Create a virtual environment
python -m virtualenv venv
1.3.1 (linux/mac) Activate venv, install the requirements using pip and set environmental variable FLASK_APP:
source venv/bin/activate
pip install -r requirements.txt
export FLASK_APP=run.py
1.3.2 (windows) Activate venv, install the requirements using pip and set environmental variable FLASK_APP:
\venv\Scripts\activate.bat
pip install -r requirements.txt
export FLASK_APP=run.py
1.4 Run the application by executing the command:
flask run
Run the application by executing the command:
flask run
Open the address on which the application is running:
Authorize the app by your GitHub account via OAuth:
Select a username which repositories you want to list, next click of the buttons:
- List repos: prints all the received repositories of the selected user with a list of used languages
- List languages: prints all languages used in all repositories of the selected user
- Manage the authentication directly from the app (GitHub REST API works without a token, however, there exists a limit of 60 requests)
- Secure unexpected cases (eg. failed authorization, achieved the limit of requests)
- Create the layout
- Further development: language usage by time, time series charts, forecasting