{"id":24362149,"url":"https://github.com/yevheniidatsenko/goit-pythonweb-hw-02","last_synced_at":"2026-04-11T06:42:20.699Z","repository":{"id":273088549,"uuid":"915794133","full_name":"yevheniidatsenko/goit-pythonweb-hw-02","owner":"yevheniidatsenko","description":"📂 Hometask - FullStack Web Development with Python (Docker fundamentals)","archived":false,"fork":false,"pushed_at":"2025-01-18T15:22:53.000Z","size":630,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T15:57:53.067Z","etag":null,"topics":["docker-compose","fastapi","goit-pythonweb-hw-02","postgresql","pyhton"],"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/yevheniidatsenko.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":"2025-01-12T20:17:27.000Z","updated_at":"2025-01-18T15:24:51.000Z","dependencies_parsed_at":"2025-01-18T16:19:06.996Z","dependency_job_id":"e91465bd-b51b-49ee-af60-22e856eee221","html_url":"https://github.com/yevheniidatsenko/goit-pythonweb-hw-02","commit_stats":null,"previous_names":["yevheniidatsenko/goit-pythonweb-hw-02"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yevheniidatsenko/goit-pythonweb-hw-02","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yevheniidatsenko%2Fgoit-pythonweb-hw-02","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yevheniidatsenko%2Fgoit-pythonweb-hw-02/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yevheniidatsenko%2Fgoit-pythonweb-hw-02/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yevheniidatsenko%2Fgoit-pythonweb-hw-02/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yevheniidatsenko","download_url":"https://codeload.github.com/yevheniidatsenko/goit-pythonweb-hw-02/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yevheniidatsenko%2Fgoit-pythonweb-hw-02/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31671629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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":["docker-compose","fastapi","goit-pythonweb-hw-02","postgresql","pyhton"],"created_at":"2025-01-18T22:49:41.471Z","updated_at":"2026-04-11T06:42:20.664Z","avatar_url":"https://github.com/yevheniidatsenko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Application Deployment with Docker\n\n## Task Overview\n\nThis task involves deploying a FastAPI application using Docker. You will clone the application repository, set it up, and run it in a Docker container. Finally, you will verify the application's functionality and database connectivity.\n\n## Steps to Complete the Task\n\n1. **Clone the Repository**\n\n   ```bash\n   git clone https://github.com/GoIT-Python-Web/FullStack-Web-Development-hw2\n   cd FullStack-Web-Development-hw2\n   ```\n\n2. **Create a Dockerfile**\n\n   - Create a `Dockerfile` with instructions to build the Docker image for the application.\n\n3. **Write docker-compose.yaml**\n\n   - Create a `docker-compose.yaml` file with the configuration for the application and PostgreSQL.\n\n4. **Modify Database Connection**\n\n   - Update the `SQLALCHEMY_DATABASE_URL` in `conf/db.py`:\n     ```python\n     SQLALCHEMY_DATABASE_URL = f\"postgresql+psycopg2://postgres:567234@\u003cpostgres_service_name\u003e:5432/hw02\"\n     ```\n\n5. **Build and Run the Environment**\n\n   ```bash\n   docker-compose up\n   ```\n\n6. **Verify Application Functionality**\n   - Open your browser and check the application.\n   - Click the \"Check DB\" button to confirm database connectivity.\n\n## Expected Results\n\n- **Application Home Page**\n  ![Application Home Page](/screenshots/SCR_1.jpeg)\n\n- **Database Check Result**\n  ![Database Check Result](./screenshots/SCR_2.jpeg)\n\n- **Docker**\n  ![Docker Results](./screenshots/SCR_3.jpeg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyevheniidatsenko%2Fgoit-pythonweb-hw-02","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyevheniidatsenko%2Fgoit-pythonweb-hw-02","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyevheniidatsenko%2Fgoit-pythonweb-hw-02/lists"}