{"id":24782278,"url":"https://github.com/luciaheredia/clockapp","last_synced_at":"2026-04-30T00:35:35.225Z","repository":{"id":274165293,"uuid":"921827481","full_name":"LuciaHeredia/ClockApp","owner":"LuciaHeredia","description":"Clock App","archived":false,"fork":false,"pushed_at":"2025-01-25T11:24:24.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T11:25:56.836Z","etag":null,"topics":["docker-compose","dockerfile","flask-application","html","python","python3"],"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/LuciaHeredia.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-24T17:34:01.000Z","updated_at":"2025-01-25T11:25:34.000Z","dependencies_parsed_at":"2025-01-25T11:36:11.765Z","dependency_job_id":null,"html_url":"https://github.com/LuciaHeredia/ClockApp","commit_stats":null,"previous_names":["luciaheredia/clockapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuciaHeredia%2FClockApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuciaHeredia%2FClockApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuciaHeredia%2FClockApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuciaHeredia%2FClockApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuciaHeredia","download_url":"https://codeload.github.com/LuciaHeredia/ClockApp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245214984,"owners_count":20578895,"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":["docker-compose","dockerfile","flask-application","html","python","python3"],"created_at":"2025-01-29T11:16:41.523Z","updated_at":"2026-04-30T00:35:35.190Z","avatar_url":"https://github.com/LuciaHeredia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Clock App with Docker:\n\u003cimg src=\"screenshots/clock_app.gif\" width=\"500\"/\u003e\n\n## Missions: \n### Clock App (clock_app): \n-\tIt displays the current time. \n-\tExposes an **API endpoint** to decrement the time. \\\n    \u003cimg src = \"screenshots/clock_app.png\" width=\"380\"\u003e\n\n### Button App (button_app):\n-\tContains a button to decrement the time. \n-\tCommunicates with the **clock_app** by making a POST request to the **API endpoint**. \\\n    \u003cimg src = \"screenshots/button_app.png\" width=\"350\"\u003e \u003cimg src = \"screenshots/button_app_2.png\" width=\"400\"\u003e\n\n## Structure:\n```\nproject_folder/\n├── apps/\n│   ├── clock_app/\n│   │   ├── clock_app.py\n│   │   ├── Dockerfile\n│   │   ├── requirements.txt\n│   │   ├── templates/\n│   │       └── ...\n│   └── button_app/ \n│       ├── button_app.py\n│       ├── Dockerfile\n│       ├── requirements.txt\n│       ├── templates/\n│           └── ...\n└── docker-compose.yml \n```\n\n## Steps:\n### Flask Apps:\n-\tTwo directories: **clock_app** and **button_app**. \n-\tIn each directory: Python files (**app.py**) and templates(**index.html**). \n-   In the Python files: **button_app** communicates with **clock_app** using the *requests* library. \n-\t**clock_app**: Displays the current time and updates it upon **API endpoint** request (/update_time) . \n-\t**button_app**: Contains a button to decrement the time and communicates with **clock_app** via **API endpoint**. \n-\tIn each directory: requirements file (**requirements.txt**: *Flask*, *requests*).\n### Dockerfiles:\n-\tIn each directory: **Dockerfile** for the Docker image configuration. \n### Docker Compose File:\n-\tIn the project root: docker-compose file (**docker-compose.yml**).\n-\t*Services* for both **clock_app** and **button_app**: *build contexts*, *ports* and *environment*(in **button_app**). \n-\tDefault *network* for communication between the two containers. \n-\tBuild and Run the Containers:\n    ```\n    docker-compose up --build\n    ```\n### Access the Apps:\n-\t**clock_app** available at http://localhost:5001. \n-\t**button_app** available at http://localhost:5002. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluciaheredia%2Fclockapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluciaheredia%2Fclockapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluciaheredia%2Fclockapp/lists"}