# haneefmohammad757/synora-ecommerce architecture

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

- Interactive diagram: https://gitdiagram.com/haneefmohammad757/synora-ecommerce
- Repository: https://github.com/haneefmohammad757/synora-ecommerce

## Overview

Synora is a full-stack shopping application. Shoppers browse and filter products, inspect details, register or log in, manage carts and wishlists, check out, and review orders; administrators manage products. The React app routes these experiences and calls a Spring Boot API, which provides authentication, catalog, cart, order, wishlist, and payment capabilities backed by MySQL. The frontend excerpts show several page-to-API calls; backend internals and some frontend capabilities are represented from the README and tree, so those relationships are documented at subsystem level rather than inferred method by method.

Main entry points: [`frontend/src/App.jsx`](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/App.jsx) (Route App), [`frontend/src/api/axios.js`](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/api/axios.js) (HTTP Client), [`backend/src/main/java/com/example/synora/service`](https://github.com/haneefmohammad757/synora-ecommerce/tree/main/backend/src/main/java/com/example/synora/service) (Domain Services), [`frontend/src/pages/Home.jsx`](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Home.jsx) (Home Store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Storefront"]
  node_app["Route App<br/>[App.jsx]"]
  node_home["Home Store<br/>[Home.jsx]"]
  node_catalog["Product Catalog<br/>[AllProducts.jsx]"]
  node_product["Product Details<br/>[ProductDetails.jsx]"]
  node_productcard["Product Card<br/>[ProductCard.jsx]"]
  node_adminui["Admin Dashboard<br/>[AdminDashboard.jsx]"]
  node_adminform["Product Editor"]
end

subgraph group_identity["Identity &amp; Access"]
  node_authui["Sign In &amp; Register<br/>[Auth.jsx]"]
  node_authstate["Auth Context<br/>[AuthContext.jsx]"]
  node_profileui["Profile<br/>[Profile.jsx]"]
end

subgraph group_commerce["Shopping &amp; Orders"]
  node_cartui["Cart &amp; Checkout<br/>[Cart.jsx]"]
  node_checkoutui["Checkout<br/>[Checkout.jsx]"]
  node_ordersui["Order History<br/>[Orders.jsx]"]
  node_wishlistui["Wishlist<br/>[Wishlist.jsx]"]
end

subgraph group_backend["Backend API"]
  node_http["HTTP Client<br/>[axios.js]"]
  node_controllers["API Controllers"]
  node_services["Domain Services"]
  node_security["JWT Security"]
end

subgraph group_data["Persistence &amp; Payments"]
  node_repositories["Repositories"]
  node_mysql[("MySQL")]
  node_payment["Razorpay"]
end

node_shopper(("Shopper"))
node_admin(("Administrator"))

node_shopper -->|"uses"| node_app
node_admin -->|"uses"| node_app
node_app -->|"routes"| node_home
node_app -->|"routes"| node_catalog
node_app -->|"routes"| node_product
node_app -->|"routes"| node_cartui
node_app -->|"routes"| node_authui
node_app -->|"routes"| node_ordersui
node_app -->|"routes"| node_checkoutui
node_app -->|"routes"| node_profileui
node_app -->|"routes"| node_wishlistui
node_app -->|"routes"| node_adminui
node_home -->|"loads products"| node_http
node_home -->|"renders cards"| node_productcard
node_catalog -->|"renders cards"| node_productcard
node_product -->|"requests product"| node_http
node_productcard -->|"updates cart and wishlist"| node_http
node_authui -->|"submits credentials"| node_http
node_authui -->|"sets login state"| node_authstate
node_cartui -.->|"uses API"| node_http
node_checkoutui -.->|"uses API"| node_http
node_ordersui -->|"loads orders"| node_http
node_profileui -->|"loads account data"| node_http
node_wishlistui -.->|"uses API"| node_http
node_adminui -->|"uses editor"| node_adminform
node_adminform -->|"saves products"| node_http
node_http -.->|"calls API"| node_controllers
node_controllers -.->|"delegates"| node_services
node_services -.->|"uses persistence"| node_repositories
node_repositories -.->|"reads and writes"| node_mysql
node_services -.->|"uses JWT access"| node_security
node_services -.->|"integrates payments"| node_payment

click node_app "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/App.jsx"
click node_home "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Home.jsx"
click node_catalog "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/AllProducts.jsx"
click node_product "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/ProductDetails.jsx"
click node_productcard "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/components/ProductCard.jsx"
click node_adminui "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/AdminDashboard.jsx"
click node_adminform "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/components/AdminProductForm.jsx"
click node_authui "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Auth.jsx"
click node_authstate "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/context/AuthContext.jsx"
click node_http "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/api/axios.js"
click node_cartui "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Cart.jsx"
click node_checkoutui "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Checkout.jsx"
click node_ordersui "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Orders.jsx"
click node_profileui "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Profile.jsx"
click node_wishlistui "https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Wishlist.jsx"
click node_controllers "https://github.com/haneefmohammad757/synora-ecommerce/tree/main/backend/src/main/java/com/example/synora/controller"
click node_services "https://github.com/haneefmohammad757/synora-ecommerce/tree/main/backend/src/main/java/com/example/synora/service"
click node_security "https://github.com/haneefmohammad757/synora-ecommerce/tree/main/backend/src/main/java/com/example/synora/Security"
click node_repositories "https://github.com/haneefmohammad757/synora-ecommerce/tree/main/backend/src/main/java/com/example/synora/repository"

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_app,node_home,node_catalog,node_product,node_productcard,node_adminui,node_adminform toneBlue
class node_authui,node_authstate,node_profileui toneAmber
class node_cartui,node_checkoutui,node_ordersui,node_wishlistui toneMint
class node_http,node_controllers,node_services,node_security toneRose
class node_repositories,node_mysql,node_payment,node_shopper,node_admin toneIndigo
```

## Components

### Storefront

- [Route App](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Home Store](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Home.jsx): `frontend/src/pages/Home.jsx`
- [Product Catalog](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/AllProducts.jsx): `frontend/src/pages/AllProducts.jsx`
- [Product Details](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/ProductDetails.jsx): `frontend/src/pages/ProductDetails.jsx`
- [Product Card](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/components/ProductCard.jsx): `frontend/src/components/ProductCard.jsx`
- [Admin Dashboard](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/AdminDashboard.jsx): `frontend/src/pages/AdminDashboard.jsx`
- [Product Editor](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/components/AdminProductForm.jsx): `frontend/src/components/AdminProductForm.jsx`

### Identity & Access

- [Sign In & Register](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Auth.jsx): `frontend/src/pages/Auth.jsx`
- [Auth Context](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [Profile](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Profile.jsx): `frontend/src/pages/Profile.jsx`

### Shopping & Orders

- [Cart & Checkout](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Cart.jsx): `frontend/src/pages/Cart.jsx`
- [Checkout](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Checkout.jsx): `frontend/src/pages/Checkout.jsx`
- [Order History](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Orders.jsx): `frontend/src/pages/Orders.jsx`
- [Wishlist](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/pages/Wishlist.jsx): `frontend/src/pages/Wishlist.jsx`

### Backend API

- [HTTP Client](https://github.com/haneefmohammad757/synora-ecommerce/blob/main/frontend/src/api/axios.js): `frontend/src/api/axios.js`
- [API Controllers](https://github.com/haneefmohammad757/synora-ecommerce/tree/main/backend/src/main/java/com/example/synora/controller): `backend/src/main/java/com/example/synora/controller`
- [Domain Services](https://github.com/haneefmohammad757/synora-ecommerce/tree/main/backend/src/main/java/com/example/synora/service): `backend/src/main/java/com/example/synora/service`
- [JWT Security](https://github.com/haneefmohammad757/synora-ecommerce/tree/main/backend/src/main/java/com/example/synora/Security): `backend/src/main/java/com/example/synora/Security`

### Persistence & Payments

- [Repositories](https://github.com/haneefmohammad757/synora-ecommerce/tree/main/backend/src/main/java/com/example/synora/repository): `backend/src/main/java/com/example/synora/repository`
- **MySQL**
- **Razorpay**

### Other components

- **Shopper**
- **Administrator**

## Connections

- Shopper → Route App: uses (evidence: `README.md`)
- Administrator → Route App: uses (evidence: `README.md`)
- Route App → Home Store: routes (evidence: `frontend/src/App.jsx`)
- Route App → Product Catalog: routes (evidence: `frontend/src/App.jsx`)
- Route App → Product Details: routes (evidence: `frontend/src/App.jsx`)
- Route App → Cart & Checkout: routes (evidence: `frontend/src/App.jsx`)
- Route App → Sign In & Register: routes (evidence: `frontend/src/App.jsx`)
- Route App → Order History: routes (evidence: `frontend/src/App.jsx`)
- Route App → Checkout: routes (evidence: `frontend/src/App.jsx`)
- Route App → Profile: routes (evidence: `frontend/src/App.jsx`)
- Route App → Wishlist: routes (evidence: `frontend/src/App.jsx`)
- Route App → Admin Dashboard: routes (evidence: `frontend/src/App.jsx`)
- Home Store → HTTP Client: loads products (evidence: `frontend/src/pages/Home.jsx`)
- Home Store → Product Card: renders cards (evidence: `frontend/src/pages/Home.jsx`)
- Product Catalog → Product Card: renders cards (evidence: `frontend/src/pages/AllProducts.jsx`)
- Product Details → HTTP Client: requests product (evidence: `frontend/src/pages/ProductDetails.jsx`)
- Product Card → HTTP Client: updates cart and wishlist (evidence: `frontend/src/components/ProductCard.jsx`)
- Sign In & Register → HTTP Client: submits credentials (evidence: `frontend/src/pages/Auth.jsx`)
- Sign In & Register → Auth Context: sets login state (evidence: `frontend/src/pages/Auth.jsx`)
- Cart & Checkout → HTTP Client: uses API (evidence: `frontend/src/pages/Cart.jsx`)
- Checkout → HTTP Client: uses API (evidence: `frontend/src/pages/Checkout.jsx`)
- Order History → HTTP Client: loads orders (evidence: `frontend/src/pages/Orders.jsx`)
- Profile → HTTP Client: loads account data (evidence: `frontend/src/pages/Profile.jsx`)
- Wishlist → HTTP Client: uses API (evidence: `frontend/src/pages/Wishlist.jsx`)
- Admin Dashboard → Product Editor: uses editor (evidence: `frontend/src/pages/AdminDashboard.jsx`)
- Product Editor → HTTP Client: saves products (evidence: `frontend/src/components/AdminProductForm.jsx`)
- HTTP Client → API Controllers: calls API
- API Controllers → Domain Services: delegates
- Domain Services → Repositories: uses persistence
- Repositories → MySQL: reads and writes (evidence: `README.md`)
- Domain Services → JWT Security: uses JWT access (evidence: `README.md`)
- Domain Services → Razorpay: integrates payments (evidence: `README.md`)
