{"id":20775105,"url":"https://github.com/deruina/starfolio","last_synced_at":"2026-05-19T14:36:23.983Z","repository":{"id":225299827,"uuid":"762845560","full_name":"DeRuina/Starfolio","owner":"DeRuina","description":"This project is a FastAPI application that allows users to authenticate with GitHub using OAuth and fetch their starred repositories. The application provides a web interface for users to log in and view their starred repositories, as well working with command-line interface (CLI) ","archived":false,"fork":false,"pushed_at":"2024-04-30T11:00:33.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T21:28:41.859Z","etag":null,"topics":["asynchronous-programming","concurrency","fastapi","oauth2"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DeRuina.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2024-02-24T21:08:44.000Z","updated_at":"2024-04-30T11:00:37.000Z","dependencies_parsed_at":"2024-04-30T12:31:25.135Z","dependency_job_id":"08b18769-3c88-436d-945a-65856734f2fc","html_url":"https://github.com/DeRuina/Starfolio","commit_stats":null,"previous_names":["deruina/starfolio"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DeRuina/Starfolio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeRuina%2FStarfolio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeRuina%2FStarfolio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeRuina%2FStarfolio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeRuina%2FStarfolio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeRuina","download_url":"https://codeload.github.com/DeRuina/Starfolio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeRuina%2FStarfolio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274107293,"owners_count":25223445,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["asynchronous-programming","concurrency","fastapi","oauth2"],"created_at":"2024-11-17T12:34:32.389Z","updated_at":"2026-05-19T14:36:23.920Z","avatar_url":"https://github.com/DeRuina.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Starfolio\n\n## Short Description\n\nThis project is a FastAPI application that allows users to authenticate with GitHub using OAuth and fetch their starred repositories. The application provides a web interface for users to log in and view their starred repositories, like a portfolio, hence Starfolio. Working as well through the command-line interface (CLI) for fetching the repositories programmatically.\n\n## Instructions\n\n### Prerequisites\n\n- Python 3.6 or newer\n- FastAPI\n- Uvicorn (ASGI server)\n- `httpx` (for making HTTP requests)\n- `python-dotenv` (for loading environment variables)\n\n## Getting Started\n\nTo get started with the project, follow these steps:\n\n1. **Clone the Repository**: Open a terminal and run the following command to clone the repository:\n```bash\ngit clone https://github.com/DeRuina/Starfolio.git \n```\n2. **Navigate to the Project Directory**: Change to the project directory by running:\n```bash\ncd Starfolio\n```\n\n### GitHub OAuth Setup\n\n1. Go to your GitHub account's [Developer Settings](https://github.com/settings/developers).\n2. Click on \"New OAuth App\" to create a new OAuth application.\n3. Fill in the \"Application name\", \"Homepage URL\", and \"Authorization callback URL\" fields.\n   - For \"Homepage URL\", use `http://127.0.0.1:8000`.\n   - For \"Authorization callback URL\", use `http://127.0.0.1:8000/authorize`.\n4. After creating the OAuth application, you will receive a `client_id` and `client_secret`.\n\n### Environment Setup\n\n1. Rename the `.env.example` file to `.env`.\n2. Open the `.env` file and fill in the `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET` fields with the values you received from GitHub **between the double quotes**.\n\n### Running the Application\n\n1. Install the required dependencies by running\n```bash\n pip install fastapi uvicorn httpx python-dotenv\n```\n2. Start the application by running\n```bash\npython3 main.py\n```\n3. Open your web browser and navigate to `http://127.0.0.1:8000`.\n4. Click on the \"Login with GitHub\" button to authenticate.\n5. After successful authentication, you will be redirected to the `/starred` endpoint, where you can view your starred repositories.\n\n### Using the Command-Line Interface (CLI)\n\n1. After authenticating, you can use the following `curl` command to fetch your starred repositories programmatically:\n```bash\ncurl -X GET \"http://127.0.0.1:8000/starred\" -H \"Authorization: Bearer ${ACCESS_TOKEN}\"\n```\n\n### Additional Notes\n\n- Ensure that your `.env` file is not committed to version control systems like Git to protect your sensitive credentials.\n\n## Running Tests\n\n### Prerequisites\n\n- Python 3.6 or newer\n- All project dependencies installed (as listed in the instructions)\n\n### Running the Tests\n\n1. **Navigate to the project directory**: Open a terminal and navigate to the root directory of your project.\n\n2. **Run the tests**: Execute the following command to run the tests:\n```bash\npython3 -m unittest tests.test_app\n```\n\n\n\n## Author\n\n- [@DeRuina](https://github.com/DeRuina)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderuina%2Fstarfolio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderuina%2Fstarfolio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderuina%2Fstarfolio/lists"}