{"id":29551310,"url":"https://github.com/sai-123-code/age-calculator-flask-docker_ecs","last_synced_at":"2026-05-03T12:37:28.671Z","repository":{"id":303568479,"uuid":"1015940050","full_name":"sai-123-code/age-calculator-flask-docker_ECS","owner":"sai-123-code","description":"A simple web-based age calculator built with Flask, deployed using Docker and AWS ECS","archived":false,"fork":false,"pushed_at":"2025-07-09T12:56:59.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-03T12:37:16.497Z","etag":null,"topics":["docker-image","ecs-fargate","flask-api","mlops","python"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/sai-123-code.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,"zenodo":null}},"created_at":"2025-07-08T08:57:19.000Z","updated_at":"2025-07-09T13:02:13.000Z","dependencies_parsed_at":"2025-07-09T14:05:39.494Z","dependency_job_id":null,"html_url":"https://github.com/sai-123-code/age-calculator-flask-docker_ECS","commit_stats":null,"previous_names":["sai-123-code/age-calculator-flask-docker","sai-123-code/age-calculator-flask-docker_ecs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sai-123-code/age-calculator-flask-docker_ECS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sai-123-code%2Fage-calculator-flask-docker_ECS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sai-123-code%2Fage-calculator-flask-docker_ECS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sai-123-code%2Fage-calculator-flask-docker_ECS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sai-123-code%2Fage-calculator-flask-docker_ECS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sai-123-code","download_url":"https://codeload.github.com/sai-123-code/age-calculator-flask-docker_ECS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sai-123-code%2Fage-calculator-flask-docker_ECS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32569714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-image","ecs-fargate","flask-api","mlops","python"],"created_at":"2025-07-18T04:05:05.573Z","updated_at":"2026-05-03T12:37:28.663Z","avatar_url":"https://github.com/sai-123-code.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Age-calculator-flask-docker-ECS\nThis repository contains a simple Flask web application that calculates the age based on a user's date of birth, deployed using Docker and AWS ECS with Fargate. The goal of this project is to understand how Docker works, how to create Docker images, how to containerize a Python Flask application, and how to deploy it on AWS.\n\n## Project Overview\nThe application is an age calculator that:\nTakes a user's name and date of birth as input.\nCalculates the age in years and months based on the current date (July 08, 2025, 03:42 PM IST).\nDisplays the result on the same page with a styled interface using CSS.\n\n## Technologies Used\n- **Python 3.13**: For the Flask backend.  \n- **Flask**: A micro web framework for building the application.  \n- **HTML/CSS**: For the frontend interface.  \n- **Docker**: For containerizing the application.\n- **AWS IAM**: For authenticating and managing access to AWS services.\n- **AWS ECR**: For storing and managing Docker images.\n- **AWS ECS with Fargate**: For deploying and running the containerized application.\n- **AWS Security Groups**: For controlling network access to the ECS service.\n\n\n## Build the Docker Image\ndocker build -t calculate_age .\n## Run the Container\ndocker run -p 8080:5000 calculate_age\n## For Pushing Docker image to AWS ECR\nRefer to this offical AWS blog - https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-push-ecr-image.html\n\n## Screenshots of Docker image created \n\u003cimg width=\"954\" alt=\"Screenshot 2025-07-08 142403\" src=\"https://github.com/user-attachments/assets/6180cf4e-b178-4b48-8b2e-b01907e955de\" /\u003e\n\n## Screenshots of Webpage running in docker container\n\u003cimg width=\"956\" alt=\"Screenshot 2025-07-08 142036\" src=\"https://github.com/user-attachments/assets/c314083f-3ba1-48c2-a6d5-3aa52e1e57cc\" /\u003e\n\n## Screenshot of pushing Docker image to ECR using Amazon CLI\n\u003cimg width=\"949\" alt=\"Screenshot 2025-07-09 155849\" src=\"https://github.com/user-attachments/assets/22ca1a2b-f7d0-4c93-a741-747a231106e9\" /\u003e\n\n##  Screenshot of creating ECS Cluster and related task definition with Fargate\n\u003cimg width=\"942\" alt=\"Screenshot 2025-07-09 175456\" src=\"https://github.com/user-attachments/assets/39960c83-3fd3-4121-af17-5bf6b195000c\" /\u003e\n\n## Screenshot of final webapp deployed in same public ip address\n\u003cimg width=\"959\" alt=\"image\" src=\"https://github.com/user-attachments/assets/f798abd6-8a04-45a1-9650-6ce8eef97a33\" /\u003e\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsai-123-code%2Fage-calculator-flask-docker_ecs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsai-123-code%2Fage-calculator-flask-docker_ecs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsai-123-code%2Fage-calculator-flask-docker_ecs/lists"}