How ritesh5585/onyx works
ONYX is a buyer-and-seller fashion commerce platform. Buyers browse products, choose variants, manage a wishlist and cart, provide shipping details, and proceed toward payment and order history; sellers manage listings and inventory. The graph preserves these domain areas and the Express route/controller/data layers. Some client and server modules are indexed but not excerpted, so their links are limited to documented capabilities or indexed references; dashed links indicate optional or incompletely verified integrations.
Main entry points: app.router.jsx Route dispatch · app.js Express API · payment.controller.js Payment operations · product.api.js Product API
Components 34
Client application
- React application
client/src/app/App.jsx - Route dispatch
client/src/app/app.router.jsx - Redux store
client/src/app/app.store.js - Authentication
client/src/features/auth/hook/useAuth.js
Catalog and seller portal
- Storefront
client/src/features/Products/pages/Home.jsx - Product details
client/src/features/Products/pages/ProductDetails.jsx - Seller listings
client/src/features/Products/pages/Dashboard.jsx - Product creation
client/src/features/Products/pages/CreatProduct.jsx - Variant management
client/src/features/Products/pages/SellerProductdetail.jsx - Product API
client/src/features/Products/service/product.api.js
Buyer commerce
- Wishlist
client/src/features/Wishlists/pages/getYourList.jsx - Cart and checkout
client/src/features/cart/pages/Cart.jsx - Address book
client/src/features/cart/hooks/useAddress.js - Payment initiation
client/src/features/cart/components/RazorPay.jsx - Order history
client/src/features/orders/pages/MyOrders.jsx
Server and persistence
- Express API
server/src/app.js - Auth routes
server/src/routes/auth.router.js - Product routes
server/src/routes/product.routes.js - Product operations
server/src/controller/product.controller.js - Cart operations
server/src/controller/cart.controller.js - Cart aggregation
server/src/dao/cart.dao.js - Address operations
server/src/controller/address.controller.js - Payment operations
server/src/controller/payment.controller.js - Order operations
server/src/controller/order.controller.js - Identity operations
server/src/controller/auth.controller.js - JWT authorization
server/src/middleware/auth.middleware.js - Product records
server/src/models/product.js - Cart records
server/src/models/cart.js - Address records
server/src/models/address.js - User records
server/src/models/user.js - Order records
server/src/models/order.js - Payment gateway adapter
server/src/services/payment.service.js
Other components
- Buyer
- Seller
Connections 44
- Buyer → Route dispatch: browses
client/src/app/app.router.jsx - Seller → Route dispatch: opens portal
client/src/app/app.router.jsx - React application → Route dispatch: hosts routes
client/src/app/App.jsx - React application → Authentication: checks session
client/src/app/App.jsx - Route dispatch → Storefront: routes to
client/src/app/app.router.jsx - Route dispatch → Product details: routes to
client/src/app/app.router.jsx - Route dispatch → Seller listings: routes to
client/src/app/app.router.jsx - Route dispatch → Product creation: routes to
client/src/app/app.router.jsx - Route dispatch → Variant management: routes to
client/src/app/app.router.jsx - Route dispatch → Wishlist: routes to
client/src/app/app.router.jsx - Route dispatch → Cart and checkout: routes to
client/src/app/app.router.jsx - Route dispatch → Order history: routes to
client/src/app/app.router.jsx - Redux store → React application: provides state
- Authentication → Redux store: updates auth state
client/src/features/auth/hook/useAuth.js - Storefront → Product API: loads catalog
client/src/features/Products/pages/Home.jsx - Seller listings → Product API: manages listings
README.md - Product creation → Product API: submits listing
README.md - Variant management → Product API: manages variants
README.md - Wishlist → Redux store: updates wishlist state
- Cart and checkout → Address book: selects address
README.md - Cart and checkout → Payment initiation: initiates payment
README.md - Route dispatch → Express API: sends REST requests
README.md - Express API → Auth routes: mounts
server/src/app.js - Express API → Product routes: mounts
server/src/app.js - Express API → Cart operations: mounts cart routes
server/src/app.js - Express API → Address operations: mounts address routes
server/src/app.js - Express API → Payment operations: mounts payment routes
server/src/app.js - Express API → Order operations: mounts order routes
server/src/app.js - Auth routes → Identity operations: dispatches
server/src/routes/auth.router.js - Auth routes → JWT authorization: protects profile
server/src/routes/auth.router.js - Product routes → Product operations: dispatches
server/src/routes/product.routes.js - Product routes → JWT authorization: guards seller routes
server/src/routes/product.routes.js - Product operations → Product records: reads and writes
server/src/controller/product.controller.js - Product operations → Payment gateway adapter: uploads assets
server/src/controller/product.controller.js - Cart operations → Cart aggregation: loads cart totals
server/src/controller/cart.controller.js - Cart operations → Cart records: updates cart
server/src/controller/cart.controller.js - Cart aggregation → Cart records: aggregates
server/src/dao/cart.dao.js - Address operations → Address records: reads and writes
server/src/controller/address.controller.js - Identity operations → User records: reads and writes
server/src/controller/auth.controller.js - JWT authorization → User records: resolves identity
server/src/middleware/auth.middleware.js - Payment operations → Payment gateway adapter: creates gateway order
server/src/controller/payment.controller.js - Payment operations → Cart aggregation: reads cart
server/src/controller/payment.controller.js - Payment operations → Address records: loads shipping address
server/src/controller/payment.controller.js - Order operations → Order records: reads and writes
server/src/controller/order.controller.js