# sandeep-jagan/sandeep-cicd-project architecture

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

- Interactive diagram: https://gitdiagram.com/sandeep-jagan/sandeep-cicd-project
- Repository: https://github.com/sandeep-jagan/sandeep-cicd-project

## Overview

This repository combines a small FoodieHub static site with a documented GitHub Actions demo that tests, packages, and deploys the site to S3 using AWS OIDC. The sampled JavaScript implements category filtering, menu scrolling, and order alerts; the README describes the workflow stages and AWS configuration. The workflow and page markup were not sampled, so their connections are based only on README statements, not a review of their implementation.

Main entry points: [`.github/workflows/deploy.yml`](https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/.github/workflows/deploy.yml) (Deploy workflow), [`src/index.html`](https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/src/index.html) (Website page), [`src/script.js`](https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/src/script.js) (Food interactions), [`tests/test.sh`](https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/tests/test.sh) (Shell tests)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website"]
  node_page["Website page<br/>[index.html]"]
  node_styles["Page styling<br/>[style.css]"]
  node_interactions["Food interactions<br/>[script.js]"]
end

subgraph group_automation["GitHub Automation"]
  node_workflow["Deploy workflow<br/>[deploy.yml]"]
  node_tests["Shell tests<br/>[test.sh]"]
  node_artifact["Built site"]
end

subgraph group_deployment["AWS Deployment"]
  node_iam["IAM role"]
  node_s3[("S3 bucket")]
end

node_visitor(("Site visitor"))
node_github(("GitHub repository"))
node_awssts["AWS STS"]
node_siteuser(("Website visitor"))

node_visitor -->|"pushes changes"| node_github
node_github -->|"triggers"| node_workflow
node_workflow -->|"runs tests"| node_tests
node_workflow -->|"copies src"| node_artifact
node_workflow -->|"requests credentials"| node_awssts
node_awssts -->|"assumes role"| node_iam
node_workflow -->|"syncs artifact"| node_s3
node_siteuser -->|"opens site"| node_page
node_interactions -->|"updates DOM"| node_page

click node_page "https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/src/index.html"
click node_styles "https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/src/style.css"
click node_interactions "https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/src/script.js"
click node_workflow "https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/.github/workflows/deploy.yml"
click node_tests "https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/tests/test.sh"

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_styles,node_interactions toneBlue
class node_workflow,node_tests,node_artifact toneAmber
class node_iam,node_s3 toneMint
class node_visitor,node_github,node_awssts,node_siteuser toneIndigo
```

## Components

### Website

- [Website page](https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/src/index.html): `src/index.html`
- [Page styling](https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/src/style.css): `src/style.css`
- [Food interactions](https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/src/script.js): `src/script.js`

### GitHub Automation

- [Deploy workflow](https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/.github/workflows/deploy.yml): `.github/workflows/deploy.yml`
- [Shell tests](https://github.com/sandeep-jagan/sandeep-cicd-project/blob/main/tests/test.sh): `tests/test.sh`
- **Built site**

### AWS Deployment

- **IAM role**
- **S3 bucket**

### Other components

- **Site visitor**
- **GitHub repository**
- **AWS STS**
- **Website visitor**

## Connections

- Site visitor → GitHub repository: pushes changes (evidence: `README.md`)
- GitHub repository → Deploy workflow: triggers (evidence: `README.md`)
- Deploy workflow → Shell tests: runs tests (evidence: `README.md`)
- Deploy workflow → Built site: copies src (evidence: `README.md`)
- Deploy workflow → AWS STS: requests credentials (evidence: `README.md`)
- AWS STS → IAM role: assumes role (evidence: `README.md`)
- Deploy workflow → S3 bucket: syncs artifact (evidence: `README.md`)
- Website visitor → Website page: opens site (evidence: `README.md`)
- Food interactions → Website page: updates DOM (evidence: `src/script.js`)
