# verma-kunal/aws-session architecture

> Architecture diagram of the GitHub repository verma-kunal/aws-session, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/verma-kunal/aws-session
- Repository: https://github.com/verma-kunal/aws-session

## Overview

This is a small Express web app for workshop pages and Stripe checkout, with deployment instructions for AWS EC2. A visitor reaches the site, selects a workshop, and the server serves its page; the server also exposes a checkout-session endpoint that creates a Stripe payment session. The sampled client code shows workshop navigation, but not how checkout is initiated or how success and cancellation pages are consumed. Those pages are included because the server routes to them; their contents were not sampled.

Main entry points: [`server.js`](https://github.com/verma-kunal/aws-session/blob/main/server.js) (Express server), [`client/app.js`](https://github.com/verma-kunal/aws-session/blob/main/client/app.js) (Workshop navigation), [`client/index.html`](https://github.com/verma-kunal/aws-session/blob/main/client/index.html) (Home page), [`client/workshops`](https://github.com/verma-kunal/aws-session/tree/main/client/workshops) (Workshop pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Workshop experience"]
  node_workshop_ui["Workshop navigation<br/>[app.js]"]
  node_home_page["Home page<br/>[index.html]"]
  node_workshop_pages["Workshop pages"]
  node_success_page["Success page<br/>[success.html]"]
  node_cancel_page["Cancel page<br/>[cancel.html]"]
end

subgraph group_server["Web server"]
  node_express_server["Express server<br/>[server.js]"]
end

subgraph group_payments["Payments"]
  node_checkout_endpoint["Checkout endpoint<br/>[server.js]"]
  node_stripe_checkout["Stripe Checkout"]
end

node_visitor(("Visitor"))

node_visitor -->|"uses"| node_workshop_ui
node_workshop_ui -->|"navigates to"| node_express_server
node_express_server -->|"serves"| node_home_page
node_express_server -->|"serves"| node_workshop_pages
node_express_server -->|"serves"| node_success_page
node_express_server -->|"serves"| node_cancel_page
node_express_server -->|"routes"| node_checkout_endpoint
node_checkout_endpoint -->|"creates session"| node_stripe_checkout

click node_workshop_ui "https://github.com/verma-kunal/aws-session/blob/main/client/app.js"
click node_home_page "https://github.com/verma-kunal/aws-session/blob/main/client/index.html"
click node_workshop_pages "https://github.com/verma-kunal/aws-session/tree/main/client/workshops"
click node_success_page "https://github.com/verma-kunal/aws-session/blob/main/client/success.html"
click node_cancel_page "https://github.com/verma-kunal/aws-session/blob/main/client/cancel.html"
click node_express_server "https://github.com/verma-kunal/aws-session/blob/main/server.js"
click node_checkout_endpoint "https://github.com/verma-kunal/aws-session/blob/main/server.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_workshop_ui,node_home_page,node_workshop_pages,node_success_page,node_cancel_page toneBlue
class node_express_server toneAmber
class node_checkout_endpoint,node_stripe_checkout toneMint
class node_visitor toneIndigo
```

## Components

### Workshop experience

- [Workshop navigation](https://github.com/verma-kunal/aws-session/blob/main/client/app.js): `client/app.js`
- [Home page](https://github.com/verma-kunal/aws-session/blob/main/client/index.html): `client/index.html`
- [Workshop pages](https://github.com/verma-kunal/aws-session/tree/main/client/workshops): `client/workshops`
- [Success page](https://github.com/verma-kunal/aws-session/blob/main/client/success.html): `client/success.html`
- [Cancel page](https://github.com/verma-kunal/aws-session/blob/main/client/cancel.html): `client/cancel.html`

### Web server

- [Express server](https://github.com/verma-kunal/aws-session/blob/main/server.js): `server.js`

### Payments

- [Checkout endpoint](https://github.com/verma-kunal/aws-session/blob/main/server.js): `server.js`
- **Stripe Checkout**

### Other components

- **Visitor**

## Connections

- Visitor → Workshop navigation: uses
- Workshop navigation → Express server: navigates to (evidence: `client/app.js`)
- Express server → Home page: serves (evidence: `server.js`)
- Express server → Workshop pages: serves (evidence: `server.js`)
- Express server → Success page: serves (evidence: `server.js`)
- Express server → Cancel page: serves (evidence: `server.js`)
- Express server → Checkout endpoint: routes (evidence: `server.js`)
- Checkout endpoint → Stripe Checkout: creates session (evidence: `server.js`)
