# manoj9329/women-s-fashion-collection architecture

> Architecture diagram of the GitHub repository manoj9329/women-s-fashion-collection, 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/manoj9329/women-s-fashion-collection
- Repository: https://github.com/manoj9329/women-s-fashion-collection

## Overview

Women’s Fashion Collection is a full-stack clothing storefront: shoppers browse and select products, manage a cart or wishlist, authenticate, place orders, and review order history; administrators manage products and order status. React pages use a shared API client and app context, while Spring controllers delegate to business services and JPA repositories. The README documents PostgreSQL and Razorpay capabilities. Some backend and frontend source was not excerpted, so those links rely on SOURCE INDEX references or README statements; Razorpay is shown as an optional integration.

Main entry points: [`frontend/src/api/axios.js`](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/api/axios.js) (API client), [`frontend/src/App.jsx`](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/App.jsx) (React app), [`backend/src/main/java/com/wfc/service/OrderService.java`](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/service/OrderService.java) (Order service), [`frontend/src/pages/admin/AdminDashboard.jsx`](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/admin/AdminDashboard.jsx) (Admin dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_app["React app<br/>[App.jsx]"]
  node_home["Home<br/>[Home.jsx]"]
  node_shop["Shop<br/>[Shop.jsx]"]
  node_product["Product detail<br/>[ProductDetail.jsx]"]
  node_card["Product card<br/>[ProductCard.jsx]"]
  node_cart["Cart<br/>[Cart.jsx]"]
  node_wishlist["Wishlist<br/>[Wishlist.jsx]"]
  node_orders["Order history<br/>[Orders.jsx]"]
  node_profile["Profile<br/>[Profile.jsx]"]
  node_adminui["Admin dashboard<br/>[AdminDashboard.jsx]"]
  node_context["App context<br/>[AppContext.jsx]"]
  node_api["API client<br/>[axios.js]"]
end

subgraph group_identity["Identity and access"]
  node_authui["Authentication UI<br/>[Auth.jsx]"]
  node_authcontroller["Auth API"]
  node_authservice["Auth service<br/>[AuthService.java]"]
  node_jwt["JWT utilities<br/>[JwtUtil.java]"]
  node_jwtfilter["JWT filter<br/>[JwtFilter.java]"]
end

subgraph group_commerce["Orders and catalog"]
  node_productcontroller["Product API"]
  node_productservice["Product service"]
  node_admincontroller["Admin API"]
  node_ordercontroller["Order API"]
  node_orderservice["Order service<br/>[OrderService.java]"]
end

subgraph group_backend["Backend services and data"]
  node_productrepo["Product repository"]
  node_orderrepo["Order repository"]
  node_userrepo["User repository"]
  node_products["Product records<br/>[Product.java]"]
  node_ordersdata["Order records<br/>[Order.java]"]
  node_users["User records<br/>[User.java]"]
end

node_shopper(("Shopper"))
node_admin(("Administrator"))
node_payment["Razorpay"]
node_postgres[("PostgreSQL")]

node_shopper -->|"uses"| node_app
node_admin -->|"uses"| node_app
node_app -->|"routes"| node_home
node_app -->|"routes"| node_shop
node_app -->|"routes"| node_product
node_app -->|"routes"| node_cart
node_app -->|"routes"| node_authui
node_app -->|"routes"| node_orders
node_app -->|"routes"| node_wishlist
node_app -->|"routes"| node_profile
node_app -->|"routes"| node_adminui
node_home -->|"requests data"| node_api
node_shop -->|"requests data"| node_api
node_product -->|"requests data"| node_api
node_cart -->|"submits orders"| node_api
node_orders -->|"loads orders"| node_api
node_profile -->|"requests data"| node_api
node_adminui -->|"admin requests"| node_api
node_authui -->|"auth requests"| node_api
node_card -->|"updates cart"| node_context
node_card -->|"toggles wishlist"| node_context
node_product -->|"renders"| node_card
node_shop -->|"renders"| node_card
node_api -->|"calls REST API"| node_authcontroller
node_authcontroller -->|"delegates"| node_authservice
node_authservice -->|"creates tokens"| node_jwt
node_jwtfilter -->|"validates tokens"| node_jwt
node_api -->|"calls REST API"| node_productcontroller
node_productcontroller -->|"delegates"| node_productservice
node_productservice -->|"queries"| node_productrepo
node_productservice -->|"maps records"| node_products
node_api -->|"calls REST API"| node_ordercontroller
node_ordercontroller -->|"delegates"| node_orderservice
node_adminui -->|"manages catalog"| node_api
node_adminui -->|"manages orders"| node_api
node_admincontroller -->|"delegates"| node_productservice
node_admincontroller -->|"delegates"| node_orderservice
node_orderservice -->|"persists orders"| node_orderrepo
node_orderservice -->|"loads products"| node_productrepo
node_orderservice -->|"loads customer"| node_userrepo
node_authservice -->|"reads and saves"| node_userrepo
node_orderrepo -->|"stores"| node_ordersdata
node_productrepo -->|"stores"| node_products
node_userrepo -->|"stores"| node_users
node_productrepo -->|"JPA persistence"| node_postgres
node_orderrepo -->|"JPA persistence"| node_postgres
node_userrepo -->|"JPA persistence"| node_postgres
node_orderservice -.->|"payment verification"| node_payment

click node_app "https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/App.jsx"
click node_home "https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Home.jsx"
click node_shop "https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Shop.jsx"
click node_product "https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/ProductDetail.jsx"
click node_card "https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/components/ProductCard.jsx"
click node_cart "https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Cart.jsx"
click node_wishlist "https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Wishlist.jsx"
click node_orders "https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Orders.jsx"
click node_profile "https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Profile.jsx"
click node_adminui "https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/admin/AdminDashboard.jsx"
click node_context "https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/context/AppContext.jsx"
click node_api "https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/api/axios.js"
click node_authui "https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Auth.jsx"
click node_authcontroller "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/controller/AuthController.java"
click node_authservice "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/service/AuthService.java"
click node_jwt "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/security/JwtUtil.java"
click node_jwtfilter "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/security/JwtFilter.java"
click node_productcontroller "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/controller/ProductController.java"
click node_productservice "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/service/ProductService.java"
click node_admincontroller "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/controller/AdminController.java"
click node_ordercontroller "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/controller/OrderController.java"
click node_orderservice "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/service/OrderService.java"
click node_productrepo "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/repository/ProductRepository.java"
click node_orderrepo "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/repository/OrderRepository.java"
click node_userrepo "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/repository/UserRepository.java"
click node_products "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/entity/Product.java"
click node_ordersdata "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/entity/Order.java"
click node_users "https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/entity/User.java"

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_shop,node_product,node_card,node_cart,node_wishlist,node_orders,node_profile,node_adminui,node_context,node_api toneBlue
class node_authui,node_authcontroller,node_authservice,node_jwt,node_jwtfilter,node_postgres toneAmber
class node_productcontroller,node_productservice,node_admincontroller,node_ordercontroller,node_orderservice toneMint
class node_productrepo,node_orderrepo,node_userrepo,node_products,node_ordersdata,node_users toneRose
class node_shopper,node_admin,node_payment toneIndigo
```

## Components

### Storefront

- [React app](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Home](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Home.jsx): `frontend/src/pages/Home.jsx`
- [Shop](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Shop.jsx): `frontend/src/pages/Shop.jsx`
- [Product detail](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/ProductDetail.jsx): `frontend/src/pages/ProductDetail.jsx`
- [Product card](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/components/ProductCard.jsx): `frontend/src/components/ProductCard.jsx`
- [Cart](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Cart.jsx): `frontend/src/pages/Cart.jsx`
- [Wishlist](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Wishlist.jsx): `frontend/src/pages/Wishlist.jsx`
- [Order history](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Orders.jsx): `frontend/src/pages/Orders.jsx`
- [Profile](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Profile.jsx): `frontend/src/pages/Profile.jsx`
- [Admin dashboard](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/admin/AdminDashboard.jsx): `frontend/src/pages/admin/AdminDashboard.jsx`
- [App context](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/context/AppContext.jsx): `frontend/src/context/AppContext.jsx`
- [API client](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/api/axios.js): `frontend/src/api/axios.js`

### Identity and access

- [Authentication UI](https://github.com/manoj9329/women-s-fashion-collection/blob/main/frontend/src/pages/Auth.jsx): `frontend/src/pages/Auth.jsx`
- [Auth API](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/controller/AuthController.java): `backend/src/main/java/com/wfc/controller/AuthController.java`
- [Auth service](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/service/AuthService.java): `backend/src/main/java/com/wfc/service/AuthService.java`
- [JWT utilities](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/security/JwtUtil.java): `backend/src/main/java/com/wfc/security/JwtUtil.java`
- [JWT filter](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/security/JwtFilter.java): `backend/src/main/java/com/wfc/security/JwtFilter.java`

### Orders and catalog

- [Product API](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/controller/ProductController.java): `backend/src/main/java/com/wfc/controller/ProductController.java`
- [Product service](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/service/ProductService.java): `backend/src/main/java/com/wfc/service/ProductService.java`
- [Admin API](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/controller/AdminController.java): `backend/src/main/java/com/wfc/controller/AdminController.java`
- [Order API](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/controller/OrderController.java): `backend/src/main/java/com/wfc/controller/OrderController.java`
- [Order service](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/service/OrderService.java): `backend/src/main/java/com/wfc/service/OrderService.java`

### Backend services and data

- [Product repository](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/repository/ProductRepository.java): `backend/src/main/java/com/wfc/repository/ProductRepository.java`
- [Order repository](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/repository/OrderRepository.java): `backend/src/main/java/com/wfc/repository/OrderRepository.java`
- [User repository](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/repository/UserRepository.java): `backend/src/main/java/com/wfc/repository/UserRepository.java`
- [Product records](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/entity/Product.java): `backend/src/main/java/com/wfc/entity/Product.java`
- [Order records](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/entity/Order.java): `backend/src/main/java/com/wfc/entity/Order.java`
- [User records](https://github.com/manoj9329/women-s-fashion-collection/blob/main/backend/src/main/java/com/wfc/entity/User.java): `backend/src/main/java/com/wfc/entity/User.java`

### Other components

- **Shopper**
- **Administrator**
- **Razorpay**
- **PostgreSQL**

## Connections

- Shopper → React app: uses (evidence: `README.md`)
- Administrator → React app: uses (evidence: `README.md`)
- React app → Home: routes (evidence: `frontend/src/App.jsx`)
- React app → Shop: routes (evidence: `frontend/src/App.jsx`)
- React app → Product detail: routes (evidence: `frontend/src/App.jsx`)
- React app → Cart: routes (evidence: `frontend/src/App.jsx`)
- React app → Authentication UI: routes (evidence: `frontend/src/App.jsx`)
- React app → Order history: routes (evidence: `frontend/src/App.jsx`)
- React app → Wishlist: routes (evidence: `frontend/src/App.jsx`)
- React app → Profile: routes (evidence: `frontend/src/App.jsx`)
- React app → Admin dashboard: routes (evidence: `frontend/src/App.jsx`)
- Home → API client: requests data (evidence: `frontend/src/pages/Home.jsx`)
- Shop → API client: requests data (evidence: `frontend/src/pages/Shop.jsx`)
- Product detail → API client: requests data (evidence: `frontend/src/pages/ProductDetail.jsx`)
- Cart → API client: submits orders (evidence: `frontend/src/pages/Cart.jsx`)
- Order history → API client: loads orders (evidence: `frontend/src/pages/Orders.jsx`)
- Profile → API client: requests data (evidence: `frontend/src/pages/Profile.jsx`)
- Admin dashboard → API client: admin requests (evidence: `frontend/src/pages/admin/AdminDashboard.jsx`)
- Authentication UI → API client: auth requests (evidence: `frontend/src/pages/Auth.jsx`)
- Product card → App context: updates cart (evidence: `frontend/src/components/ProductCard.jsx`)
- Product card → App context: toggles wishlist (evidence: `frontend/src/components/ProductCard.jsx`)
- Product detail → Product card: renders (evidence: `frontend/src/pages/ProductDetail.jsx`)
- Shop → Product card: renders (evidence: `frontend/src/pages/Shop.jsx`)
- API client → Auth API: calls REST API (evidence: `README.md`)
- Auth API → Auth service: delegates (evidence: `backend/src/main/java/com/wfc/controller/AuthController.java`)
- Auth service → JWT utilities: creates tokens (evidence: `backend/src/main/java/com/wfc/service/AuthService.java`)
- JWT filter → JWT utilities: validates tokens (evidence: `backend/src/main/java/com/wfc/security/JwtFilter.java`)
- API client → Product API: calls REST API (evidence: `README.md`)
- Product API → Product service: delegates (evidence: `backend/src/main/java/com/wfc/controller/ProductController.java`)
- Product service → Product repository: queries (evidence: `backend/src/main/java/com/wfc/service/ProductService.java`)
- Product service → Product records: maps records (evidence: `backend/src/main/java/com/wfc/service/ProductService.java`)
- API client → Order API: calls REST API (evidence: `README.md`)
- Order API → Order service: delegates (evidence: `backend/src/main/java/com/wfc/controller/OrderController.java`)
- Admin dashboard → API client: manages catalog (evidence: `README.md`)
- Admin dashboard → API client: manages orders (evidence: `README.md`)
- Admin API → Product service: delegates (evidence: `backend/src/main/java/com/wfc/controller/AdminController.java`)
- Admin API → Order service: delegates (evidence: `backend/src/main/java/com/wfc/controller/AdminController.java`)
- Order service → Order repository: persists orders (evidence: `backend/src/main/java/com/wfc/service/OrderService.java`)
- Order service → Product repository: loads products (evidence: `backend/src/main/java/com/wfc/service/OrderService.java`)
- Order service → User repository: loads customer (evidence: `backend/src/main/java/com/wfc/service/OrderService.java`)
- Auth service → User repository: reads and saves (evidence: `backend/src/main/java/com/wfc/service/AuthService.java`)
- Order repository → Order records: stores (evidence: `backend/src/main/java/com/wfc/repository/OrderRepository.java`)
- Product repository → Product records: stores (evidence: `backend/src/main/java/com/wfc/repository/ProductRepository.java`)
- User repository → User records: stores (evidence: `backend/src/main/java/com/wfc/repository/UserRepository.java`)
- Product repository → PostgreSQL: JPA persistence (evidence: `README.md`)
- Order repository → PostgreSQL: JPA persistence (evidence: `README.md`)
- User repository → PostgreSQL: JPA persistence (evidence: `README.md`)
- Order service → Razorpay: payment verification (evidence: `README.md`)
