# sri-balakumar-alphalize26/e_commerce_website architecture

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

- Interactive diagram: https://gitdiagram.com/sri-balakumar-alphalize26/e_commerce_website
- Repository: https://github.com/sri-balakumar-alphalize26/e_commerce_website

## Overview

369 Mart is a grocery storefront and staff console: shoppers browse products, manage a cart, check out, then view receipts and track orders; account, support, and reorder features extend that journey. The Next.js storefront uses a server-side proxy to reach Odoo, while the admin console exposes operational areas. README capability descriptions support the product-stage links; source excerpts confirm the proxy and key component relationships. Many backend implementations are unsampled, so their internal calls are not expanded.

Main entry points: [`components/home/Home.jsx`](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/Home.jsx) (Storefront shell), [`components/admin/AdminApp.jsx`](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/admin/AdminApp.jsx) (Admin console), [`lib/odoo.js`](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/lib/odoo.js) (Odoo client), [`components/home/Cart.jsx`](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/Cart.jsx) (Cart)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Shopper storefront"]
  node_storefront["Storefront shell<br/>[Home.jsx]"]
  node_browse["Browse catalog<br/>[Browse.jsx]"]
  node_search["Product search<br/>[SearchOverlay.jsx]"]
  node_product["Product details<br/>[ProductDetail.jsx]"]
end

subgraph group_commerce["Commerce journey"]
  node_cart["Cart<br/>[Cart.jsx]"]
  node_checkout["Checkout<br/>[Checkout.jsx]"]
  node_payment["Payments<br/>[payment_api.py]"]
  node_receipt["Order receipt<br/>[Receipt.jsx]"]
  node_tracking["Order tracking<br/>[OrderTrack.jsx]"]
end

subgraph group_customer["Customer services"]
  node_account["Account and rewards<br/>[AccountExtras.jsx]"]
  node_support["Support bot<br/>[SupportBot.jsx]"]
  node_signin["Sign in<br/>[SignIn.jsx]"]
end

subgraph group_operations["Staff operations"]
  node_admin["Admin console<br/>[AdminApp.jsx]"]
  node_admin_catalog["Catalog management<br/>[AdminCatalog.jsx]"]
  node_admin_orders["Order management<br/>[AdminOrders.jsx]"]
  node_admin_more["Store operations<br/>[AdminMore.jsx]"]
end

subgraph group_integration["Backend access"]
  node_api_client["API client<br/>[api.js]"]
  node_mart_proxy["Mart API proxy<br/>[route.js]"]
  node_auth_routes["Auth routes<br/>[route.js]"]
  node_odoo_client["Odoo client<br/>[odoo.js]"]
  node_odoo["Odoo services"]
end

node_shopper(("Shopper"))
node_admin_actor(("Staff"))

node_shopper -->|"opens shop"| node_storefront
node_storefront -->|"renders browsing"| node_browse
node_storefront -->|"renders search"| node_search
node_storefront -->|"renders details"| node_product
node_storefront -->|"opens cart"| node_cart
node_cart -->|"proceeds to"| node_checkout
node_checkout -.->|"submits payment"| node_payment
node_payment -.->|"confirms order"| node_receipt
node_receipt -->|"opens tracking"| node_tracking
node_storefront -->|"opens account"| node_account
node_storefront -->|"offers help"| node_support
node_shopper -->|"signs in"| node_signin
node_admin_actor -.->|"opens console"| node_admin
node_admin -->|"renders section"| node_admin_catalog
node_admin -->|"renders section"| node_admin_orders
node_admin -.->|"renders section"| node_admin_more
node_storefront -.->|"requests data"| node_api_client
node_api_client -->|"fetches same-origin"| node_mart_proxy
node_mart_proxy -->|"calls backend"| node_odoo_client
node_auth_routes -->|"authenticates via"| node_odoo_client
node_odoo_client -->|"sends requests"| node_odoo

click node_storefront "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/Home.jsx"
click node_browse "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/Browse.jsx"
click node_search "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/SearchOverlay.jsx"
click node_product "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/ProductDetail.jsx"
click node_cart "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/Cart.jsx"
click node_checkout "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/Checkout.jsx"
click node_payment "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/odoo_modules/mart369_payment/controllers/payment_api.py"
click node_receipt "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/Receipt.jsx"
click node_tracking "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/OrderTrack.jsx"
click node_account "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/AccountExtras.jsx"
click node_support "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/SupportBot.jsx"
click node_signin "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/signin/SignIn.jsx"
click node_admin "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/admin/AdminApp.jsx"
click node_admin_catalog "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/admin/AdminCatalog.jsx"
click node_admin_orders "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/admin/AdminOrders.jsx"
click node_admin_more "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/admin/AdminMore.jsx"
click node_api_client "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/lib/api.js"
click node_mart_proxy "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/app/api/mart/%5B...path%5D/route.js"
click node_auth_routes "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/app/api/auth/login/route.js"
click node_odoo_client "https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/lib/odoo.js"
click node_odoo "https://github.com/sri-balakumar-alphalize26/e_commerce_website/tree/main/odoo_modules"

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_storefront,node_browse,node_search,node_product toneBlue
class node_cart,node_checkout,node_payment,node_receipt,node_tracking toneAmber
class node_account,node_support,node_signin toneMint
class node_admin,node_admin_catalog,node_admin_orders,node_admin_more toneRose
class node_api_client,node_mart_proxy,node_auth_routes,node_odoo_client,node_odoo,node_shopper,node_admin_actor toneIndigo
```

## Components

### Shopper storefront

- [Storefront shell](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/Home.jsx): `components/home/Home.jsx`
- [Browse catalog](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/Browse.jsx): `components/home/Browse.jsx`
- [Product search](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/SearchOverlay.jsx): `components/home/SearchOverlay.jsx`
- [Product details](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/ProductDetail.jsx): `components/home/ProductDetail.jsx`

### Commerce journey

- [Cart](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/Cart.jsx): `components/home/Cart.jsx`
- [Checkout](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/Checkout.jsx): `components/home/Checkout.jsx`
- [Payments](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/odoo_modules/mart369_payment/controllers/payment_api.py): `odoo_modules/mart369_payment/controllers/payment_api.py`
- [Order receipt](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/Receipt.jsx): `components/home/Receipt.jsx`
- [Order tracking](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/OrderTrack.jsx): `components/home/OrderTrack.jsx`

### Customer services

- [Account and rewards](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/AccountExtras.jsx): `components/home/AccountExtras.jsx`
- [Support bot](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/home/SupportBot.jsx): `components/home/SupportBot.jsx`
- [Sign in](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/signin/SignIn.jsx): `components/signin/SignIn.jsx`

### Staff operations

- [Admin console](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/admin/AdminApp.jsx): `components/admin/AdminApp.jsx`
- [Catalog management](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/admin/AdminCatalog.jsx): `components/admin/AdminCatalog.jsx`
- [Order management](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/admin/AdminOrders.jsx): `components/admin/AdminOrders.jsx`
- [Store operations](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/components/admin/AdminMore.jsx): `components/admin/AdminMore.jsx`

### Backend access

- [API client](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/lib/api.js): `lib/api.js`
- [Mart API proxy](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/app/api/mart/%5B...path%5D/route.js): `app/api/mart/[...path]/route.js`
- [Auth routes](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/app/api/auth/login/route.js): `app/api/auth/login/route.js`
- [Odoo client](https://github.com/sri-balakumar-alphalize26/e_commerce_website/blob/main/lib/odoo.js): `lib/odoo.js`
- [Odoo services](https://github.com/sri-balakumar-alphalize26/e_commerce_website/tree/main/odoo_modules): `odoo_modules`

### Other components

- **Shopper**
- **Staff**

## Connections

- Shopper → Storefront shell: opens shop (evidence: `README.md`)
- Storefront shell → Browse catalog: renders browsing (evidence: `components/home/Home.jsx`)
- Storefront shell → Product search: renders search (evidence: `components/home/Home.jsx`)
- Storefront shell → Product details: renders details (evidence: `components/home/Home.jsx`)
- Storefront shell → Cart: opens cart (evidence: `README.md`)
- Cart → Checkout: proceeds to (evidence: `README.md`)
- Checkout → Payments: submits payment
- Payments → Order receipt: confirms order
- Order receipt → Order tracking: opens tracking (evidence: `README.md`)
- Storefront shell → Account and rewards: opens account (evidence: `README.md`)
- Storefront shell → Support bot: offers help (evidence: `README.md`)
- Shopper → Sign in: signs in (evidence: `README.md`)
- Staff → Admin console: opens console
- Admin console → Catalog management: renders section (evidence: `components/admin/AdminApp.jsx`)
- Admin console → Order management: renders section (evidence: `components/admin/AdminApp.jsx`)
- Admin console → Store operations: renders section (evidence: `components/admin/AdminApp.jsx`)
- Storefront shell → API client: requests data (evidence: `components/home/Home.jsx`)
- API client → Mart API proxy: fetches same-origin (evidence: `app/api/mart/[...path]/route.js`)
- Mart API proxy → Odoo client: calls backend (evidence: `app/api/mart/[...path]/route.js`)
- Auth routes → Odoo client: authenticates via (evidence: `app/api/auth/login/route.js`)
- Odoo client → Odoo services: sends requests (evidence: `lib/odoo.js`)
