How mohitbnt/cloudcart-k8s works
CloudCart is an e-commerce application paired with a Kubernetes/GitOps platform. The main user journey is browsing the catalog, authenticating, managing a cart, and placing an order; the order service reserves inventory and authorizes simulated payment before persisting the order. The graph also captures documented ingress, stateful services, network policy, and Argo CD reconciliation. Service-to-service links follow the README or shown calls; unsampled service behavior is not inferred beyond those sources.
Main entry points: app/main.py API gateway · app.js Storefront UI · app/main.py Order service · statefulset.yaml PostgreSQL
Components 20
Storefront
- Storefront UI
cloudcart-application/frontend/js/app.js - API client
cloudcart-application/frontend/js/api.js - API endpoint config
cloudcart-application/frontend/js/config.js - Browser state
cloudcart-application/frontend/js/store.js - UI rendering
cloudcart-application/frontend/js/ui.js
Commerce API
- API gateway
cloudcart-application/gateway/app/main.py - Catalog service
cloudcart-application/services/catalog/app/main.py - Identity service
cloudcart-application/services/identity/app/main.py - Cart service
cloudcart-application/services/cart/app/main.py - Order service
cloudcart-application/services/order/app/main.py - Inventory service
cloudcart-application/services/inventory/app/main.py - Payment service
cloudcart-application/services/payment/app/main.py - Notification service
cloudcart-application/services/notification/app/main.py
State Services
- PostgreSQL
kubernetes/base/postgres/statefulset.yaml - Redis
kubernetes/base/redis/statefulset.yaml
Kubernetes Platform
- Ingress NGINX
- Network policies
kubernetes/base/policies/01-default-deny.yaml - Environment overlays
kubernetes/overlays/dev/kustomization.yaml - Argo CD sync
argocd/02-application-set.yaml
Other components
- Shopper
Connections 26
- Shopper → Ingress NGINX: visits
README.md - Ingress NGINX → Storefront UI: routes to
README.md - Ingress NGINX → API gateway: routes to
README.md - Storefront UI → API client: requests via
cloudcart-application/frontend/js/app.js - Storefront UI → Browser state: updates
cloudcart-application/frontend/js/app.js - Storefront UI → UI rendering: renders with
cloudcart-application/frontend/js/app.js - API client → API endpoint config: reads endpoint
cloudcart-application/frontend/js/api.js - UI rendering → Browser state: reads state
cloudcart-application/frontend/js/ui.js - API client → API gateway: sends API requests
README.md - API gateway → Catalog service: proxies requests
cloudcart-application/gateway/app/main.py - API gateway → Identity service: proxies requests
cloudcart-application/gateway/app/main.py - API gateway → Cart service: proxies requests
cloudcart-application/gateway/app/main.py - API gateway → Order service: proxies requests
cloudcart-application/gateway/app/main.py - API gateway → Inventory service: proxies requests
cloudcart-application/gateway/app/main.py - API gateway → Payment service: proxies requests
cloudcart-application/gateway/app/main.py - API gateway → Notification service: proxies requests
cloudcart-application/gateway/app/main.py - Identity service → PostgreSQL: reads and writes
cloudcart-application/services/identity/app/main.py - Identity service → Redis: stores sessions
cloudcart-application/services/identity/app/main.py - Cart service → Redis: stores cart
cloudcart-application/services/cart/app/main.py - Catalog service → PostgreSQL: reads and writes
cloudcart-application/services/catalog/app/main.py - Order service → Inventory service: reserves stock
cloudcart-application/services/order/app/main.py - Order service → Payment service: authorizes payment
cloudcart-application/services/order/app/main.py - Order service → PostgreSQL: persists orders
cloudcart-application/services/order/app/main.py - Notification service → PostgreSQL: stores notices
cloudcart-application/services/notification/app/main.py - Environment overlays → Network policies: configures access
README.md - Argo CD sync → Environment overlays: reconciles
README.md