Skip to content

This is a template repository for creating a Flask web application that fetches and displays GitHub user repositories using the GitHub API.

License

Notifications You must be signed in to change notification settings

BaranDev/List-Repositories-using-GitHub-API-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Directions:

  1. Setting up GitHub API Token:

    • Make sure you have a GitHub API token. You can obtain one by following GitHub's instructions.
    • Once you have the token, create a .env file in the root directory of your project.
    • Inside the .env file, edit the following line:
      GITHUB_API_TOKEN="your_github_api_key"
      
  2. Dependencies:

    • Make sure to install the required dependencies by running:
      pip install -r requirements.txt
      
  3. Running the Application:

    • Execute the script by running:
      python main.py
      
    • This will start the Flask application on http://127.0.0.1:8080/.
  4. Using the Application:

    • Navigate to http://127.0.0.1:8080/ in your web browser.
    • Enter a GitHub username and submit the form.
    • The application will fetch and display the repositories of the entered GitHub user.

Additional Information:

  • The application uses Flask to create a web server.
  • It fetches the repositories of a GitHub user using the GitHub API.
  • The fetch_repositories function sends a request to the GitHub API with the provided username and API token.
  • The fetched repository data is then passed to the HTML template for rendering.

GitHub language count GitHub repo size License GitHub issues GitHub pull requests GitHub stars GitHub forks

Created With Lazy.AI

About

This is a template repository for creating a Flask web application that fetches and displays GitHub user repositories using the GitHub API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published