# disha1695/project-eks-jenkins architecture

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

- Interactive diagram: https://gitdiagram.com/disha1695/project-eks-jenkins
- Repository: https://github.com/disha1695/project-eks-jenkins

## Overview

Yash Academic is a book-catalog storefront with a React client and an Express/MySQL backend. Visitors browse and filter the catalog, manage titles through add/edit/delete operations, and can use an in-page FAQ bot; catalog and form actions call the backend, which reads or changes book records in MySQL. The sampled code shows no implemented checkout or payment flow, so those bot responses are not modeled as product capabilities. Deployment and infrastructure files are excluded. Relationships reflect shown imports and calls; the README adds no further product-flow detail.

Main entry points: [`client/src/App.js`](https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/App.js) (App routes), [`client/src/pages/Books.jsx`](https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/pages/Books.jsx) (Catalog), [`client/src/pages/Add.jsx`](https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/pages/Add.jsx) (Add title), [`client/src/pages/Update.jsx`](https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/pages/Update.jsx) (Edit title)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Storefront"]
  node_client_entry["Client startup<br/>[index.js]"]
  node_app_routes["App routes<br/>[App.js]"]
  node_catalog["Catalog<br/>[Books.jsx]"]
  node_add_book["Add title<br/>[Add.jsx]"]
  node_edit_book["Edit title<br/>[Update.jsx]"]
  node_api_config["API address<br/>[config.js]"]
  node_support_bot["FAQ bot<br/>[SupportBot.jsx]"]
  node_social_links["Social links<br/>[SocialLinks.jsx]"]
  node_vitals["Web vitals<br/>[reportWebVitals.js]"]
end

subgraph group_api["Book API"]
  node_book_api["Book REST API<br/>[index.js]"]
end

subgraph group_storage["Persistence"]
  node_mysql[("MySQL books")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_client_entry
node_client_entry -->|"renders"| node_app_routes
node_client_entry -->|"reports"| node_vitals
node_app_routes -->|"routes to"| node_catalog
node_app_routes -->|"routes to"| node_add_book
node_app_routes -->|"routes to"| node_edit_book
node_app_routes -->|"renders"| node_support_bot
node_catalog -->|"reads"| node_api_config
node_add_book -->|"reads"| node_api_config
node_edit_book -->|"reads"| node_api_config
node_catalog -->|"requests catalog and changes"| node_book_api
node_add_book -->|"creates title"| node_book_api
node_edit_book -->|"updates title"| node_book_api
node_catalog -->|"renders"| node_social_links
node_add_book -->|"renders"| node_social_links
node_edit_book -->|"renders"| node_social_links
node_book_api -->|"queries books"| node_mysql

click node_client_entry "https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/index.js"
click node_app_routes "https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/App.js"
click node_catalog "https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/pages/Books.jsx"
click node_add_book "https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/pages/Add.jsx"
click node_edit_book "https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/pages/Update.jsx"
click node_api_config "https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/pages/config.js"
click node_support_bot "https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/components/SupportBot.jsx"
click node_social_links "https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/components/SocialLinks.jsx"
click node_vitals "https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/reportWebVitals.js"
click node_book_api "https://github.com/disha1695/project-eks-jenkins/blob/main/backend/index.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_client_entry,node_app_routes,node_catalog,node_add_book,node_edit_book,node_api_config,node_support_bot,node_social_links,node_vitals toneBlue
class node_book_api toneAmber
class node_mysql toneMint
class node_visitor toneIndigo
```

## Components

### Storefront

- [Client startup](https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/index.js): `client/src/index.js`
- [App routes](https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/App.js): `client/src/App.js`
- [Catalog](https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/pages/Books.jsx): `client/src/pages/Books.jsx`
- [Add title](https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/pages/Add.jsx): `client/src/pages/Add.jsx`
- [Edit title](https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/pages/Update.jsx): `client/src/pages/Update.jsx`
- [API address](https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/pages/config.js): `client/src/pages/config.js`
- [FAQ bot](https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/components/SupportBot.jsx): `client/src/components/SupportBot.jsx`
- [Social links](https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/components/SocialLinks.jsx): `client/src/components/SocialLinks.jsx`
- [Web vitals](https://github.com/disha1695/project-eks-jenkins/blob/main/client/src/reportWebVitals.js): `client/src/reportWebVitals.js`

### Book API

- [Book REST API](https://github.com/disha1695/project-eks-jenkins/blob/main/backend/index.js): `backend/index.js`

### Persistence

- **MySQL books**

### Other components

- **Visitor**

## Connections

- Visitor → Client startup: opens (evidence: `client/src/index.js`)
- Client startup → App routes: renders (evidence: `client/src/index.js`)
- Client startup → Web vitals: reports (evidence: `client/src/index.js`)
- App routes → Catalog: routes to (evidence: `client/src/App.js`)
- App routes → Add title: routes to (evidence: `client/src/App.js`)
- App routes → Edit title: routes to (evidence: `client/src/App.js`)
- App routes → FAQ bot: renders (evidence: `client/src/App.js`)
- Catalog → API address: reads (evidence: `client/src/pages/Books.jsx`)
- Add title → API address: reads (evidence: `client/src/pages/Add.jsx`)
- Edit title → API address: reads (evidence: `client/src/pages/Update.jsx`)
- Catalog → Book REST API: requests catalog and changes (evidence: `client/src/pages/Books.jsx`)
- Add title → Book REST API: creates title (evidence: `client/src/pages/Add.jsx`)
- Edit title → Book REST API: updates title (evidence: `client/src/pages/Update.jsx`)
- Catalog → Social links: renders (evidence: `client/src/pages/Books.jsx`)
- Add title → Social links: renders (evidence: `client/src/pages/Add.jsx`)
- Edit title → Social links: renders (evidence: `client/src/pages/Update.jsx`)
- Book REST API → MySQL books: queries books (evidence: `backend/index.js`)
