{"id":19491304,"url":"https://github.com/faisal-fida/fastapi-docker-project","last_synced_at":"2026-04-28T16:03:54.834Z","repository":{"id":218953837,"uuid":"747789417","full_name":"faisal-fida/FastAPI-Docker-Project","owner":"faisal-fida","description":"This project is a simple FastAPI application that demonstrates how to build and deploy a web API using Docker. The application includes a scraper that fetches the IP address from a specified URL.","archived":false,"fork":false,"pushed_at":"2024-10-06T07:37:27.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T08:46:06.472Z","etag":null,"topics":["deployment","docker","docker-compose","fastapi"],"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/faisal-fida.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-01-24T16:38:43.000Z","updated_at":"2024-10-06T07:38:16.000Z","dependencies_parsed_at":"2024-01-24T17:51:48.476Z","dependency_job_id":"8c6799f3-f7a5-44fb-98bd-4514c22c4c18","html_url":"https://github.com/faisal-fida/FastAPI-Docker-Project","commit_stats":null,"previous_names":["faisal-fida/fastapi_docker_project","faisal-fida/fastapi-docker-project"],"tags_count":0,"template":false,"template_full_name":"github/codespaces-blank","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faisal-fida%2FFastAPI-Docker-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faisal-fida%2FFastAPI-Docker-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faisal-fida%2FFastAPI-Docker-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faisal-fida%2FFastAPI-Docker-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faisal-fida","download_url":"https://codeload.github.com/faisal-fida/FastAPI-Docker-Project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240738091,"owners_count":19849546,"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":["deployment","docker","docker-compose","fastapi"],"created_at":"2024-11-10T21:16:27.573Z","updated_at":"2026-04-28T16:03:49.797Z","avatar_url":"https://github.com/faisal-fida.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Docker Project\n\nThis project is a simple FastAPI application that demonstrates how to build and deploy a web API using Docker. The application includes a scraper that fetches the IP address from a specified URL.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Complexities](#complexities)\n- [Solutions](#solutions)\n- [Challenges](#challenges)\n- [License](#license)\n\n## Installation\n\n1. Clone the repository:\n\n```sh\ngit clone https://github.com/faisal-fida/fastapi_docker_project.git\ncd fastapi_docker_project\n```\n\n2. Install the dependencies:\n\n```sh\npip install -r requirements.txt\n```\n\n3. Create a `.env` file with the following content:\n\n```\nURL=\u003cyour_url_here\u003e\n```\n\n4. Run the application:\n\n```sh\nuvicorn app:app --reload\n```\n\n## Usage\n\nThe application provides two endpoints:\n\n1. `GET /` - Returns a message indicating the server is running.\n2. `GET /ip` - Returns the IP address fetched by the scraper.\n\n- **Environment Variables**: The project uses `python-dotenv` to manage environment variables, which allows for secure and flexible configuration.\n- **Dependency Management**: Dependencies are managed using a `requirements.txt` file, ensuring that the correct versions of packages are used.\n- **External API Dependency**: The scraper relies on an external URL to fetch the IP address. Network issues or changes in the external API could affect the application's functionality.\n- **Configuration Management**: Managing environment variables securely and ensuring they are correctly set up can be challenging, especially in different environments (development, staging, production).\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaisal-fida%2Ffastapi-docker-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaisal-fida%2Ffastapi-docker-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaisal-fida%2Ffastapi-docker-project/lists"}