To understand what the plugin does, why it was built and how to use it, please visit my Medium blog post here.
More in-depth information on the project's objectives, research process and design choices can be found in the full report here.
Download and extract ZIP or clone the project by running:
git clone https://github.com/monicahomescu/Repo-Contribution-Plugin.gitYou will have two main folders:
\frontend→ Chrome Extension\backend→ FastAPI Backend
- Open Google Chrome.
- Go to
chrome://extensionsin the address bar. - Turn on Developer Mode (toggle switch in the top-right).
- Click Load unpacked.
- Select the
\frontendfolder from the project. - (Optional) Click the pin icon next to the extension to keep it visible on the toolbar.
-
Inside the
\backendfolder, create a new file named.envand add the following line inside it:TOKEN="your_personal_github_token_here"
For instructions on how to generate your personal access token visit GitHub Docs.
-
Open a terminal and navigate to the
\backendfolder:cd your_directory_path\backend
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
venv\Scripts\activate # On Windows
source venv/bin/activate # On Mac/Linux
-
Install dependencies:
pip install -r requirements.txt
-
Start the FastAPI server:
uvicorn main:app --reload
-
Once the "Application startup complete." message appears, the Chrome Extension can be used. A
stats.csvfile is created in the\backendfolder which will contain the metrics logged for each time the plugin is run. For future use, only stepsb.2,b.4andb.6need to be repeated.
