# saroasahamed/skills-deploy-to-azure architecture

> Architecture diagram of the GitHub repository saroasahamed/skills-deploy-to-azure, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/saroasahamed/skills-deploy-to-azure
- Repository: https://github.com/saroasahamed/skills-deploy-to-azure

## Overview

This repository contains a small browser-based tic-tac-toe game, alongside an AWS Lambda handler that serves its page and static assets. The player-facing flow collects names, starts a game, records turns, detects a winner, updates scores, and allows replay. The browser controller coordinates the game rules in `src/game.js`. The README describes an Azure deployment course rather than documenting this runtime; the graph focuses on implemented product behavior. The built `public/main.js` is referenced by the handler but is absent from the tree, so it is not represented as a repository node.

Main entry points: [`src/index.js`](https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/src/index.js) (Game controller), [`handler.js`](https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/handler.js) (Lambda handler), [`src/game.js`](https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/src/game.js) (Game rules), [`index.html`](https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/index.html) (HTML page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Browser game"]
  node_browser_ui["Game controller<br/>[index.js]"]
  node_rules["Game rules<br/>[game.js]"]
end

subgraph group_serving["Page serving"]
  node_lambda["Lambda handler<br/>[handler.js]"]
  node_page["HTML page<br/>[index.html]"]
  node_styles["Stylesheet<br/>[index.css]"]
end

node_players(("Players"))

node_players -->|"enter names, play"| node_browser_ui
node_browser_ui -->|"creates and calls"| node_rules
node_browser_ui -->|"checks winner"| node_rules
node_players -.->|"requests page"| node_lambda
node_lambda -->|"serves"| node_page
node_lambda -->|"serves"| node_styles

click node_browser_ui "https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/src/index.js"
click node_rules "https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/src/game.js"
click node_lambda "https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/handler.js"
click node_page "https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/index.html"
click node_styles "https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/public/index.css"

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_browser_ui,node_rules toneBlue
class node_lambda,node_page,node_styles toneAmber
class node_players toneIndigo
```

## Components

### Browser game

- [Game controller](https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/src/index.js): `src/index.js`
- [Game rules](https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/src/game.js): `src/game.js`

### Page serving

- [Lambda handler](https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/handler.js): `handler.js`
- [HTML page](https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/index.html): `index.html`
- [Stylesheet](https://github.com/saroasahamed/skills-deploy-to-azure/blob/main/public/index.css): `public/index.css`

### Other components

- **Players**

## Connections

- Players → Game controller: enter names, play (evidence: `src/index.js`)
- Game controller → Game rules: creates and calls (evidence: `src/index.js`)
- Game controller → Game rules: checks winner (evidence: `src/index.js`)
- Players → Lambda handler: requests page
- Lambda handler → HTML page: serves (evidence: `handler.js`)
- Lambda handler → Stylesheet: serves (evidence: `handler.js`)
