How sakthi582/medical-shop works
This repository is a DevOps deployment layer for a Flask medical-shop expiry-alert application. The main user workflow is accessing the shop through ingress, using Flask’s medicine and billing functions, and persisting records in MySQL; a separate scheduled check handles expiry alerts. The map also preserves the documented EKS provisioning, host operations, CI/CD, and monitoring capabilities. Application internals are only sampled in part, so feature-level links beyond the excerpts rely on README statements rather than unsampled route inspection.
Main entry points: app.py Flask application · deployment.yml Flask deployment · database.py Schema initialization · ingress.yml Ingress
Components 18
Shop application
- Flask application
app.py - Shop templates
templates - Billing cart
static/js/script.js - App configuration
config.py - Schema initialization
database.py
Kubernetes runtime
- Ingress
k8s/ingress.yml - Expiry alert job
k8s/expiry-cronjob.yml - MySQL database
k8s/mysql.yml - Flask deployment
k8s/deployment.yml - Flask service
k8s/service.yml
Monitoring
- Prometheus
monitering/prometheus-deployment.yml - Grafana
monitering/grafana/deployment.yml
Infrastructure operations
- EKS provisioning
terraform/main.tf - Host operations
ansible/roles/common/tasks/main.yml
CI/CD delivery
- CI/CD workflow
.github/workflows/ci-cd.yml
Other components
- Shop user
- SMTP service
- AWS EKS
Connections 17
- Shop user → Ingress: accesses
README.md - Ingress → Flask service: routes traffic
README.md - Flask service → Flask deployment: forwards traffic
README.md - Flask deployment → Flask application: runs
README.md - Flask application → Shop templates: serves presentation
README.md - Billing cart → Flask application: submits billing
- Flask application → MySQL database: reads and writes
README.md - Flask application → App configuration: loads settings
app.py - Schema initialization → App configuration: loads settings
database.py - Schema initialization → MySQL database: creates schema
README.md - Expiry alert job → Flask application: runs expiry check
README.md - Flask application → SMTP service: sends alerts
README.md - Prometheus → Flask deployment: scrapes metrics
README.md - Grafana → Prometheus: visualizes metrics
README.md - EKS provisioning → AWS EKS: provisions cluster
README.md - CI/CD workflow → Flask deployment: deploys application
README.md - Host operations → AWS EKS: supports host operations
README.md