- Open CMD in the Location of Gittask.py Folder
-
Fill in the following information:
- Name your Application.
- Home URL: http://127.0.0.1:5000
- Optional Application description.
- Authorization callback URL: http://127.0.0.1:5000/callback
-
Generate a new client secret after creating the OAuth app.
-
Retrieve the Client ID and Client Secret from Developer Settings.
-
Save the Client ID and Client Secret in a secure location.
set CLIENT_ID={your_client_id}
set CLIENT_SECRET={your_client_secret}
python Gittask.py
set CLIENT_ID=112cba423423423423423
set CLIENT_SECRET=f36ab06708324234234234234
python Gittask.py
- After the Server starts up, Navigate to the Homepage
- http://localhost:5000/ or http://localhost:5000/login
- Navigate by buttons or via URL
- NOTE: Navigation only succeeds after login
127.0.0.1:5000 # Index
127.0.0.1:5000/login # Login in Github
127.0.0.1:5000/profile # Show own profile
127.0.0.1:5000/gettoken # Show Access token
127.0.0.1:5000/search # Show all repos
127.0.0.1:5000/starrepos # Show Stared repos
pip install -r requirements.txt
Open Docker desktop. To download docker, Docker dowenload
- Make Sure Docker is Running
cd /path/to/your/
docker build -t {your_image_name} .
-
Example: docker build -t gittask .
-
now take a sip of coffee for 10sec
docker run -e CLIENT_ID={your_client_id} -e CLIENT_SECRET={your_client_secret} -p 5000:5000 {your_image_name}
-
After pressing 'Enter,' the server is now running. Please note that there should be no text after pressing 'Enter.'
-
Example: docker run -e CLIENT_ID=112cbaf2342348 -e CLIENT_SECRET=f36ab0670823522345 -p 5000:5000 gittask