# sanketpatil461/devops-swiggy-app architecture

> Architecture diagram of the GitHub repository sanketpatil461/devops-swiggy-app, 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/sanketpatil461/devops-swiggy-app
- Repository: https://github.com/sanketpatil461/devops-swiggy-app

## Overview

This repository is a Swiggy-style restaurant discovery frontend packaged as a DevOps deployment project. A visitor loads the React app, which renders navigation, offers, restaurant listings, and discovery links. The README also describes a deployment/tooling workflow involving Terraform, Jenkins, containerization, security checks, and Argo CD/Kubernetes manifests. Frontend composition is visible in sampled source; deployment-tool relationships are documented only at a high level, so those links are shown as unverified.

Main entry points: [`src/App.js`](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/App.js) (Page composition), [`jenkinsfile`](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/jenkinsfile) (Jenkins pipeline), [`src/index.js`](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/index.js) (React entry), [`Dockerfile`](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/Dockerfile) (Container image)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Restaurant frontend"]
  node_react_entry["React entry<br/>[index.js]"]
  node_app["Page composition<br/>[App.js]"]
  node_navigation["Navigation<br/>[Navigate.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_discovery["Discovery content"]
  node_offers["Offers and cuisines<br/>[OffersBanner.jsx]"]
  node_chains["Restaurant chains"]
  node_online_list["Online restaurants"]
  node_best_places["City and cuisine links<br/>[BestRest.jsx]"]
end

subgraph group_delivery["Build and delivery"]
  node_jenkins["Jenkins pipeline"]
  node_docker["Container image"]
end

subgraph group_deployment["Infrastructure deployment"]
  node_terraform["Terraform infrastructure<br/>[main.tf]"]
  node_argocd_deploy["Argo CD deployment<br/>[deployment.yml]"]
  node_k8s_service["Kubernetes service<br/>[service.yml]"]
end

node_visitor(("Visitor"))
node_github(("GitHub"))
node_sonarqube(("SonarQube"))
node_owasp(("OWASP checks"))
node_trivy(("Trivy scan"))
node_dockerhub(("Docker Hub"))

node_visitor -->|"loads"| node_react_entry
node_react_entry -->|"renders"| node_app
node_app -->|"renders"| node_navigation
node_app -->|"renders"| node_offers
node_app -->|"renders"| node_chains
node_app -->|"renders"| node_online_list
node_app -->|"renders"| node_best_places
node_app -->|"renders"| node_footer
node_github -.->|"triggers pipeline"| node_jenkins
node_jenkins -.->|"runs analysis"| node_sonarqube
node_jenkins -.->|"runs checks"| node_owasp
node_jenkins -.->|"scans image"| node_trivy
node_jenkins -.->|"builds image"| node_docker
node_docker -.->|"publishes image"| node_dockerhub
node_terraform -.->|"provisions for"| node_argocd_deploy
node_argocd_deploy -.->|"exposes workload"| node_k8s_service

click node_react_entry "https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/index.js"
click node_app "https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/App.js"
click node_navigation "https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/Components/Navigate.jsx"
click node_offers "https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/Components/OffersBanner.jsx"
click node_chains "https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/Components/RestaurentChain.jsx"
click node_online_list "https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/Components/RestaurentOnline.jsx"
click node_best_places "https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/Components/BestRest.jsx"
click node_footer "https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/Components/Footer.jsx"
click node_terraform "https://github.com/sanketpatil461/devops-swiggy-app/blob/main/main.tf"
click node_jenkins "https://github.com/sanketpatil461/devops-swiggy-app/blob/main/jenkinsfile"
click node_docker "https://github.com/sanketpatil461/devops-swiggy-app/blob/main/Dockerfile"
click node_argocd_deploy "https://github.com/sanketpatil461/devops-swiggy-app/blob/main/ArgoCD/deployment.yml"
click node_k8s_service "https://github.com/sanketpatil461/devops-swiggy-app/blob/main/ArgoCD/service.yml"

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_react_entry,node_app,node_navigation,node_footer toneBlue
class node_offers,node_chains,node_online_list,node_best_places toneAmber
class node_jenkins,node_docker toneMint
class node_terraform,node_argocd_deploy,node_k8s_service toneRose
class node_visitor,node_github,node_sonarqube,node_owasp,node_trivy,node_dockerhub toneIndigo
```

## Components

### Restaurant frontend

- [React entry](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/index.js): `src/index.js`
- [Page composition](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/App.js): `src/App.js`
- [Navigation](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/Components/Navigate.jsx): `src/Components/Navigate.jsx`
- [Footer](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/Components/Footer.jsx): `src/Components/Footer.jsx`

### Discovery content

- [Offers and cuisines](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/Components/OffersBanner.jsx): `src/Components/OffersBanner.jsx`
- [Restaurant chains](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/Components/RestaurentChain.jsx): `src/Components/RestaurentChain.jsx`
- [Online restaurants](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/Components/RestaurentOnline.jsx): `src/Components/RestaurentOnline.jsx`
- [City and cuisine links](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/src/Components/BestRest.jsx): `src/Components/BestRest.jsx`

### Build and delivery

- [Jenkins pipeline](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/jenkinsfile): `jenkinsfile`
- [Container image](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/Dockerfile): `Dockerfile`

### Infrastructure deployment

- [Terraform infrastructure](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/main.tf): `main.tf`
- [Argo CD deployment](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/ArgoCD/deployment.yml): `ArgoCD/deployment.yml`
- [Kubernetes service](https://github.com/sanketpatil461/devops-swiggy-app/blob/main/ArgoCD/service.yml): `ArgoCD/service.yml`

### Other components

- **Visitor**
- **GitHub**
- **SonarQube**
- **OWASP checks**
- **Trivy scan**
- **Docker Hub**

## Connections

- Visitor → React entry: loads (evidence: `src/index.js`)
- React entry → Page composition: renders (evidence: `src/index.js`)
- Page composition → Navigation: renders (evidence: `src/App.js`)
- Page composition → Offers and cuisines: renders (evidence: `src/App.js`)
- Page composition → Restaurant chains: renders (evidence: `src/App.js`)
- Page composition → Online restaurants: renders (evidence: `src/App.js`)
- Page composition → City and cuisine links: renders (evidence: `src/App.js`)
- Page composition → Footer: renders (evidence: `src/App.js`)
- GitHub → Jenkins pipeline: triggers pipeline
- Jenkins pipeline → SonarQube: runs analysis
- Jenkins pipeline → OWASP checks: runs checks
- Jenkins pipeline → Trivy scan: scans image
- Jenkins pipeline → Container image: builds image
- Container image → Docker Hub: publishes image
- Terraform infrastructure → Argo CD deployment: provisions for
- Argo CD deployment → Kubernetes service: exposes workload
