# skmahe1077/aws-eks-terraform-argocd-shop-app architecture

> Architecture diagram of the GitHub repository skmahe1077/aws-eks-terraform-argocd-shop-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/skmahe1077/aws-eks-terraform-argocd-shop-app
- Repository: https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app

## Overview

Workshop Shop is a small Express storefront demo. A shopper loads the browser UI, which fetches catalog and store details from the server; they manage a locally persisted cart and can run a simulated checkout. The server also serves static assets and exposes a health check. The README documents a separate CI/CD workflow, but it is deployment machinery rather than runtime application architecture, so it is omitted. Relationships are based on the README and sampled source; unsampled HTML structure is not inferred beyond its documented role.

Main entry points: [`app/public/script.js`](https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/public/script.js) (Storefront Logic), [`app/server.js`](https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/server.js) (Store Info API), [`app/public/index.html`](https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/public/index.html) (Store Page), [`app/products.json`](https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/products.json) (Product Catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_page["Store Page<br/>[index.html]"]
  node_storefront_logic["Storefront Logic<br/>[script.js]"]
  node_cart_actions["Cart Actions<br/>[script.js]"]
  node_checkout["Demo Checkout<br/>[script.js]"]
end

subgraph group_server["Server"]
  node_catalog["Product Catalog<br/>[products.json]"]
  node_express_server["Express Server<br/>[server.js]"]
  node_store_info["Store Info API<br/>[server.js]"]
  node_health_check["Health Check<br/>[server.js]"]
end

subgraph group_state["Browser State"]
  node_local_storage[("Cart Storage")]
end

node_shopper(("Shopper"))

node_shopper -->|"uses"| node_page
node_express_server -->|"serves static"| node_page
node_storefront_logic -->|"fetches"| node_store_info
node_store_info -->|"reads"| node_catalog
node_storefront_logic -->|"renders and invokes"| node_cart_actions
node_cart_actions -->|"reads and writes"| node_local_storage
node_checkout -->|"clears"| node_local_storage
node_shopper -->|"probes"| node_health_check

click node_page "https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/public/index.html"
click node_storefront_logic "https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/public/script.js"
click node_catalog "https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/products.json"
click node_express_server "https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/server.js"
click node_store_info "https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/server.js"
click node_health_check "https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/server.js"
click node_cart_actions "https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/public/script.js"
click node_checkout "https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/public/script.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_page,node_storefront_logic,node_cart_actions,node_checkout toneBlue
class node_catalog,node_express_server,node_store_info,node_health_check toneAmber
class node_local_storage toneMint
class node_shopper toneIndigo
```

## Components

### Storefront

- [Store Page](https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/public/index.html): `app/public/index.html`
- [Storefront Logic](https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/public/script.js): `app/public/script.js`
- [Cart Actions](https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/public/script.js): `app/public/script.js`
- [Demo Checkout](https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/public/script.js): `app/public/script.js`

### Server

- [Product Catalog](https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/products.json): `app/products.json`
- [Express Server](https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/server.js): `app/server.js`
- [Store Info API](https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/server.js): `app/server.js`
- [Health Check](https://github.com/skmahe1077/aws-eks-terraform-argocd-shop-app/blob/main/app/server.js): `app/server.js`

### Browser State

- **Cart Storage**

### Other components

- **Shopper**

## Connections

- Shopper → Store Page: uses (evidence: `README.md`)
- Express Server → Store Page: serves static (evidence: `app/server.js`)
- Storefront Logic → Store Info API: fetches (evidence: `app/public/script.js`)
- Store Info API → Product Catalog: reads (evidence: `app/server.js`)
- Storefront Logic → Cart Actions: renders and invokes (evidence: `app/public/script.js`)
- Cart Actions → Cart Storage: reads and writes (evidence: `app/public/script.js`)
- Demo Checkout → Cart Storage: clears (evidence: `app/public/script.js`)
- Shopper → Health Check: probes (evidence: `README.md`)
