# goyalanushka2863/epiglow-e-commerce-site architecture

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

- Interactive diagram: https://gitdiagram.com/goyalanushka2863/epiglow-e-commerce-site
- Repository: https://github.com/goyalanushka2863/epiglow-e-commerce-site

## Overview

Epiglow is a skincare e-commerce application. Shoppers browse the catalog, inspect products, manage a cart, then authenticate to proceed through checkout and view orders; signup/login supports that flow. Informational pages and the newsletter are additional storefront capabilities. The sampled backend exposes catalog, authentication, cart, and order APIs backed by MongoDB models. The README documents search, filters, and logout, but the available excerpts do not establish their full wiring; unsampled order-creation and payment behavior is therefore not asserted.

Main entry points: [`frontend/src/App.jsx`](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/App.jsx) (Route application), [`backend/index.js`](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/backend/index.js) (Express API), [`frontend/src/pages/Checkout/Checkout.jsx`](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Checkout/Checkout.jsx) (Checkout flow), [`frontend/src/utils/AxiosInstance.js`](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/utils/AxiosInstance.js) (API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_app["Route application<br/>[App.jsx]"]
  node_home["Home discovery"]
  node_catalog["Product catalog"]
  node_product["Product detail"]
  node_header["Store navigation<br/>[Header.jsx]"]
  node_info["Information pages"]
  node_faq["FAQ content"]
  node_contact["Contact page"]
  node_terms["Terms content"]
  node_newsletter["Newsletter signup"]
end

subgraph group_identity["Accounts"]
  node_signup["Signup<br/>[Form.jsx]"]
  node_login["Login<br/>[Form.jsx]"]
end

subgraph group_commerce["Shopping"]
  node_cart["Cart management<br/>[Body.jsx]"]
  node_checkout["Checkout flow<br/>[Checkout.jsx]"]
  node_shipping["Shipping details"]
  node_billing["Billing details<br/>[BillingDetails.jsx]"]
  node_payment["Payment details<br/>[PaymentDetails.jsx]"]
  node_orders["Order history<br/>[Body.jsx]"]
end

subgraph group_service["Backend APIs"]
  node_http["API client<br/>[AxiosInstance.js]"]
  node_api["Express API<br/>[index.js]"]
  node_auth["Token verification<br/>[utilities.js]"]
end

subgraph group_persistence["MongoDB Models"]
  node_users[("User records<br/>[UserModel.js]")]
  node_products[("Product records<br/>[ProductModel.js]")]
  node_carts[("Cart records<br/>[CartModel.js]")]
  node_orderdata[("Order records<br/>[OrderModel.js]")]
end

node_shopper(("Shopper"))
node_mongo[("MongoDB")]

node_shopper -->|"uses"| node_app
node_app -->|"routes"| node_home
node_app -->|"routes"| node_catalog
node_app -->|"routes"| node_product
node_app -->|"routes"| node_cart
node_app -->|"guards"| node_checkout
node_app -->|"routes"| node_signup
node_app -->|"routes"| node_login
node_app -->|"guards"| node_orders
node_app -->|"routes"| node_info
node_app -->|"routes"| node_faq
node_app -->|"routes"| node_contact
node_app -->|"routes"| node_terms
node_shopper -->|"navigates"| node_header
node_header -->|"opens"| node_cart
node_shopper -->|"registers"| node_signup
node_shopper -->|"authenticates"| node_login
node_shopper -->|"browses"| node_catalog
node_shopper -->|"views"| node_product
node_shopper -->|"checks out"| node_checkout
node_shopper -->|"reads"| node_info
node_shopper -->|"reads"| node_faq
node_shopper -->|"contacts"| node_contact
node_shopper -->|"reads"| node_terms
node_shopper -.->|"subscribes"| node_newsletter
node_signup -->|"requests"| node_http
node_login -->|"requests"| node_http
node_cart -->|"requests"| node_http
node_checkout -->|"requests"| node_http
node_orders -->|"requests"| node_http
node_http -.->|"HTTP calls"| node_api
node_api -->|"verifies tokens"| node_auth
node_api -->|"reads/writes"| node_users
node_api -->|"reads/writes"| node_products
node_api -->|"reads/writes"| node_carts
node_api -->|"reads"| node_orderdata
node_users -.->|"persists"| node_mongo
node_products -.->|"persists"| node_mongo
node_carts -.->|"persists"| node_mongo
node_orderdata -.->|"persists"| node_mongo
node_checkout -->|"renders"| node_shipping
node_checkout -->|"renders"| node_billing
node_checkout -->|"renders"| node_payment
node_billing -->|"renders"| node_cart

click node_app "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/App.jsx"
click node_home "https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/Home"
click node_catalog "https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/Category"
click node_product "https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/Product"
click node_header "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/components/Header.jsx"
click node_info "https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/About"
click node_faq "https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/FAQ"
click node_contact "https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/Contact"
click node_terms "https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/T%26Cs"
click node_newsletter "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/components/NewsLetterSignUp.jsx"
click node_signup "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/SignUp/Form.jsx"
click node_login "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Login/Form.jsx"
click node_cart "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Shopping%20Cart/Body.jsx"
click node_checkout "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Checkout/Checkout.jsx"
click node_shipping "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Checkout/ShippingDetails.jsx"
click node_billing "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Checkout/BillingDetails.jsx"
click node_payment "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Checkout/PaymentDetails.jsx"
click node_orders "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Order/Body.jsx"
click node_http "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/utils/AxiosInstance.js"
click node_api "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/backend/index.js"
click node_auth "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/backend/utilities.js"
click node_users "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/backend/models/UserModel.js"
click node_products "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/backend/models/ProductModel.js"
click node_carts "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/backend/models/CartModel.js"
click node_orderdata "https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/backend/models/OrderModel.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_app,node_home,node_catalog,node_product,node_header,node_info,node_faq,node_contact,node_terms,node_newsletter toneBlue
class node_signup,node_login,node_mongo toneAmber
class node_cart,node_checkout,node_shipping,node_billing,node_payment,node_orders toneMint
class node_http,node_api,node_auth toneRose
class node_users,node_products,node_carts,node_orderdata,node_shopper toneIndigo
```

## Components

### Storefront

- [Route application](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Home discovery](https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/Home): `frontend/src/pages/Home`
- [Product catalog](https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/Category): `frontend/src/pages/Category`
- [Product detail](https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/Product): `frontend/src/pages/Product`
- [Store navigation](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/components/Header.jsx): `frontend/src/components/Header.jsx`
- [Information pages](https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/About): `frontend/src/pages/About`
- [FAQ content](https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/FAQ): `frontend/src/pages/FAQ`
- [Contact page](https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/Contact): `frontend/src/pages/Contact`
- [Terms content](https://github.com/goyalanushka2863/epiglow-e-commerce-site/tree/main/frontend/src/pages/T%26Cs): `frontend/src/pages/T&Cs`
- [Newsletter signup](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/components/NewsLetterSignUp.jsx): `frontend/src/components/NewsLetterSignUp.jsx`

### Accounts

- [Signup](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/SignUp/Form.jsx): `frontend/src/pages/SignUp/Form.jsx`
- [Login](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Login/Form.jsx): `frontend/src/pages/Login/Form.jsx`

### Shopping

- [Cart management](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Shopping%20Cart/Body.jsx): `frontend/src/pages/Shopping Cart/Body.jsx`
- [Checkout flow](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Checkout/Checkout.jsx): `frontend/src/pages/Checkout/Checkout.jsx`
- [Shipping details](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Checkout/ShippingDetails.jsx): `frontend/src/pages/Checkout/ShippingDetails.jsx`
- [Billing details](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Checkout/BillingDetails.jsx): `frontend/src/pages/Checkout/BillingDetails.jsx`
- [Payment details](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Checkout/PaymentDetails.jsx): `frontend/src/pages/Checkout/PaymentDetails.jsx`
- [Order history](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/pages/Order/Body.jsx): `frontend/src/pages/Order/Body.jsx`

### Backend APIs

- [API client](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/frontend/src/utils/AxiosInstance.js): `frontend/src/utils/AxiosInstance.js`
- [Express API](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/backend/index.js): `backend/index.js`
- [Token verification](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/backend/utilities.js): `backend/utilities.js`

### MongoDB Models

- [User records](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/backend/models/UserModel.js): `backend/models/UserModel.js`
- [Product records](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/backend/models/ProductModel.js): `backend/models/ProductModel.js`
- [Cart records](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/backend/models/CartModel.js): `backend/models/CartModel.js`
- [Order records](https://github.com/goyalanushka2863/epiglow-e-commerce-site/blob/main/backend/models/OrderModel.js): `backend/models/OrderModel.js`

### Other components

- **Shopper**
- **MongoDB**

## Connections

- Shopper → Route application: uses (evidence: `frontend/src/App.jsx`)
- Route application → Home discovery: routes (evidence: `frontend/src/App.jsx`)
- Route application → Product catalog: routes (evidence: `frontend/src/App.jsx`)
- Route application → Product detail: routes (evidence: `frontend/src/App.jsx`)
- Route application → Cart management: routes (evidence: `frontend/src/App.jsx`)
- Route application → Checkout flow: guards (evidence: `frontend/src/App.jsx`)
- Route application → Signup: routes (evidence: `frontend/src/App.jsx`)
- Route application → Login: routes (evidence: `frontend/src/App.jsx`)
- Route application → Order history: guards (evidence: `frontend/src/App.jsx`)
- Route application → Information pages: routes (evidence: `frontend/src/App.jsx`)
- Route application → FAQ content: routes (evidence: `frontend/src/App.jsx`)
- Route application → Contact page: routes (evidence: `frontend/src/App.jsx`)
- Route application → Terms content: routes (evidence: `frontend/src/App.jsx`)
- Shopper → Store navigation: navigates (evidence: `frontend/src/components/Header.jsx`)
- Store navigation → Cart management: opens (evidence: `frontend/src/components/Header.jsx`)
- Shopper → Signup: registers
- Shopper → Login: authenticates
- Shopper → Product catalog: browses
- Shopper → Product detail: views
- Shopper → Checkout flow: checks out
- Shopper → Information pages: reads
- Shopper → FAQ content: reads
- Shopper → Contact page: contacts
- Shopper → Terms content: reads
- Shopper → Newsletter signup: subscribes
- Signup → API client: requests (evidence: `frontend/src/pages/SignUp/Form.jsx`)
- Login → API client: requests (evidence: `frontend/src/pages/Login/Form.jsx`)
- Cart management → API client: requests (evidence: `frontend/src/pages/Shopping Cart/Body.jsx`)
- Checkout flow → API client: requests (evidence: `frontend/src/pages/Checkout/Checkout.jsx`)
- Order history → API client: requests (evidence: `frontend/src/pages/Order/Body.jsx`)
- API client → Express API: HTTP calls
- Express API → Token verification: verifies tokens (evidence: `backend/index.js`)
- Express API → User records: reads/writes (evidence: `backend/index.js`)
- Express API → Product records: reads/writes (evidence: `backend/index.js`)
- Express API → Cart records: reads/writes (evidence: `backend/index.js`)
- Express API → Order records: reads (evidence: `backend/index.js`)
- User records → MongoDB: persists
- Product records → MongoDB: persists
- Cart records → MongoDB: persists
- Order records → MongoDB: persists
- Checkout flow → Shipping details: renders (evidence: `frontend/src/pages/Checkout/Checkout.jsx`)
- Checkout flow → Billing details: renders (evidence: `frontend/src/pages/Checkout/Checkout.jsx`)
- Checkout flow → Payment details: renders (evidence: `frontend/src/pages/Checkout/Checkout.jsx`)
- Billing details → Cart management: renders (evidence: `frontend/src/pages/Checkout/BillingDetails.jsx`)
