{"id":26409328,"url":"https://github.com/barandev/list-repositories-using-github-api-template","last_synced_at":"2026-04-13T23:02:43.273Z","repository":{"id":225028931,"uuid":"764899600","full_name":"BaranDev/List-Repositories-using-GitHub-API-Template","owner":"BaranDev","description":"This is a template repository for creating a Flask web application that fetches and displays GitHub user repositories using the GitHub API.","archived":false,"fork":false,"pushed_at":"2024-04-04T09:15:59.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-04T10:30:51.405Z","etag":null,"topics":["css","flask","githubapi","html","javascript","python","restapi","webdevelopment"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaranDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-28T22:59:51.000Z","updated_at":"2024-02-29T00:38:46.000Z","dependencies_parsed_at":"2024-02-29T01:43:32.667Z","dependency_job_id":null,"html_url":"https://github.com/BaranDev/List-Repositories-using-GitHub-API-Template","commit_stats":null,"previous_names":["barandev/get--list--all-repositories-using-github-api-template","barandev/list-repositories-using-github-api-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaranDev%2FList-Repositories-using-GitHub-API-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaranDev%2FList-Repositories-using-GitHub-API-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaranDev%2FList-Repositories-using-GitHub-API-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaranDev%2FList-Repositories-using-GitHub-API-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaranDev","download_url":"https://codeload.github.com/BaranDev/List-Repositories-using-GitHub-API-Template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244094267,"owners_count":20397020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","flask","githubapi","html","javascript","python","restapi","webdevelopment"],"created_at":"2025-03-17T19:19:58.913Z","updated_at":"2026-04-13T23:02:43.223Z","avatar_url":"https://github.com/BaranDev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Directions:\n\n1. **Setting up GitHub API Token:**\n   - Make sure you have a GitHub API token. You can obtain one by following [GitHub's instructions](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).\n   - Once you have the token, create a `.env` file in the root directory of your project.\n   - Inside the `.env` file, edit the following line:\n     ```\n     GITHUB_API_TOKEN=\"your_github_api_key\"\n     ```\n\n2. **Dependencies:**\n   - Make sure to install the required dependencies by running:\n     ```\n     pip install -r requirements.txt\n     ```\n\n3. **Running the Application:**\n   - Execute the script by running:\n     ```\n     python main.py\n     ```\n   - This will start the Flask application on `http://127.0.0.1:8080/`.\n\n4. **Using the Application:**\n   - Navigate to `http://127.0.0.1:8080/` in your web browser.\n   - Enter a GitHub username and submit the form.\n   - The application will fetch and display the repositories of the entered GitHub user.\n\n### Additional Information:\n\n- The application uses Flask to create a web server.\n- It fetches the repositories of a GitHub user using the GitHub API.\n- The `fetch_repositories` function sends a request to the GitHub API with the provided username and API token.\n- The fetched repository data is then passed to the HTML template for rendering.\n\n![GitHub language count](https://img.shields.io/github/languages/count/barandev/List-Repositories-using-GitHub-API-Template)\n![GitHub repo size](https://img.shields.io/github/repo-size/barandev/List-Repositories-using-GitHub-API-Template)\n[![License](https://img.shields.io/github/license/barandev/List-Repositories-using-GitHub-API-Template)](https://github.com/barandev/List-Repositories-using-GitHub-API-Template/blob/main/LICENSE)\n[![GitHub issues](https://img.shields.io/github/issues/barandev/List-Repositories-using-GitHub-API-Template)](https://github.com/barandev/List-Repositories-using-GitHub-API-Template/issues)\n[![GitHub pull requests](https://img.shields.io/github/issues-pr/barandev/List-Repositories-using-GitHub-API-Template)](https://github.com/barandev/List-Repositories-using-GitHub-API-Template/pulls)\n[![GitHub stars](https://img.shields.io/github/stars/barandev/List-Repositories-using-GitHub-API-Template)](https://github.com/barandev/List-Repositories-using-GitHub-API-Template/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/barandev/List-Repositories-using-GitHub-API-Template)](https://github.com/barandev/List-Repositories-using-GitHub-API-Template/network)\n### Created With [Lazy.AI](https://www.getlazy.ai)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarandev%2Flist-repositories-using-github-api-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarandev%2Flist-repositories-using-github-api-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarandev%2Flist-repositories-using-github-api-template/lists"}