Website
Proposed UI and architecture overview
| Term | Defition | Notes |
|---|---|---|
| Game | Game and chatroom associated with a repo | The Game must be the same name of the repo |
| Action | Any git-related action | Git related actions are actions that have a corresponding git hook These will be triggered from the client side |
- Enter your github email
- Select the game you want to join * Games must be the same name as the github repo you wish to connect
- Join!
- Setup your connected repo
After joining, you will need to place the right hook scripts into your repos .git/hooks folder
- i.e. If my game repo is called tmp I will extract my hook scripts into
path/to/repo/.git/hooksOnce the script files are in thehooksdirectory, they need to be made executable - On Linux/Mac, run the following
chmod +x /path/to/repo/.git/hooks/*
- Start the mongo db from docker with
docker run -d -p 27017:27017 mongo - Source a virtual environment with the appropriate packages installed with
source /path/to environment/bin/activate- You can create a venv with
virtualenv -p python3 /path/to/env - You can install the required packages After sourcing the virtual environment with
pip install -r requirements.txt- requirements.txt is in the
repo/backend/gitdrnkfolder
- requirements.txt is in the
- You can create a venv with
- Optionally export the DB Environment variable with
export DB=mongodb://localhost:27017/gitdrnk - Run the backend with
python gitdrnk.py - To start fresh with a seeded database, visit the seed_db endpoint
- To clear the database, visit the nukeeverything endpoint
- Optionally export the
REACT_APP_GITDRNK_SVCenvironment variable to point to the backend server withexport REACT_APP_GITDRNK_SVC=http://localhost:5000- It will default to localhost
npm installnpm start