Skip to content

Bloodycub/Exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Use

Starting point

  • Open CMD in the Location of Gittask.py Folder

Crate New OAuth App

Input In CMD

For Windows

set CLIENT_ID={your_client_id}
set CLIENT_SECRET={your_client_secret}
python Gittask.py

Example

set CLIENT_ID=112cba423423423423423
set CLIENT_SECRET=f36ab06708324234234234234
python Gittask.py

Navigation

  • Navigate by buttons or via URL
  • NOTE: Navigation only succeeds after login

Endpoints:

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

Pips

pip install -r requirements.txt

Docker Build Process

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 Running

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

About

Exercise for things

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published