This is a Flask web application that allows users to log in with their GitHub account and view their GitHub projects. It utilizes OAuth authentication with GitHub and retrieves the user’s projects using the GitHub API.
The application uses the GitHub OAuth flow to authenticate users. Here’s how the authentication process works:
Once the user is authenticated, they can view a list of their GitHub projects. The project listing feature works as follows:
The application stores some information in local files:
projects.txt
. This file is used to persist the project names between sessions.about.txt
. This file is updated whenever the user logs in.Before running the application, make sure you have the following:
flask
, requests
, authlib
)You can install the dependencies using pip
, the package installer for Python.
To automatically install all the required Python dependencies for this Flask application, follow these steps:
Clone or download the repository to your local machine.
Open your terminal or command prompt and navigate to the folder containing the repository.
Run the following command:
python install_dependencies.py
This will install all the necessary dependencies (flask, requests, authlib) for the Flask application.
After installing the dependencies, you can proceed with running the Flask application using the instructions provided in the README.md file.
Tip on “generate a new client secret”
client_id = "YOUR_CLIENT_ID"
client_secret = "YOUR_CLIENT_SECRET"
Feel free to adjust the content as needed. Make sure to replace "YOUR_CLIENT_ID"
and "YOUR_CLIENT_SECRET"
with your actual GitHub OAuth application credentials.
Let me know if you need further assistance!