How xenotrix-technologies/zeba works
ZEBA is an online period-care storefront with customer accounts, checkout and order tracking, plus an administrative console for store operations. The main workflow runs from browsing products through checkout and payment to order confirmation and notifications; customers and admins can then view or manage orders. The graph includes the client route entry point, major API domains, and database and notification layers. The README only names the product; relationships for unsampled modules are limited to imports and route wiring recorded in the SOURCE INDEX.
Main entry points: index.js API entry · App.jsx Store routes · paymentController.js Payment API · notificationService.js Order notifications
Components 24
Customer storefront
- Store routes
client/src/App.jsx - Home and catalog
client/src/pages/Home.jsx - Product detail
client/src/pages/ProductDetail.jsx - Cart state
client/src/context/CartContext.jsx - Checkout
client/src/pages/Checkout.jsx - Order tracking
client/src/pages/OrderTracking.jsx - Store settings
client/src/context/StoreSettingsContext.jsx - Admin console
client/src/layouts/AdminLayout.jsx
API domains
- API entry
server/src/index.js - Authentication
server/src/controllers/authController.js - Product API
server/src/controllers/productController.js - Order API
server/src/controllers/orderController.js - Payment API
server/src/controllers/paymentController.js - Customer accounts
server/src/controllers/customerController.js - Content and reviews
server/src/controllers/contentController.js - Contact messages
server/src/controllers/contactController.js
Store operations
- Admin operations
server/src/controllers/adminController.js - Settings API
server/src/controllers/settingsController.js
Persistence and messaging
- PostgreSQL store
server/src/config/db.js - Order notifications
server/src/services/notificationService.js - Email delivery
server/src/services/emailService.js
Other components
- Shopper
- Store admin
- Razorpay
Connections 27
- Shopper → Store routes: opens storefront
client/src/App.jsx - Store routes → Home and catalog: routes to
client/src/App.jsx - Store routes → Product detail: routes to
client/src/App.jsx - Store routes → Checkout: routes to
client/src/App.jsx - Store routes → Order tracking: routes to
client/src/App.jsx - Cart state → Store settings: reads settings
client/src/context/CartContext.jsx - Store admin → Admin console: uses console
- Store routes → Admin console: routes to
client/src/App.jsx - Store routes → API entry: requests API
- API entry → Authentication: routes auth
server/src/index.js - API entry → Product API: routes products
server/src/index.js - API entry → Order API: routes orders
server/src/index.js - API entry → Payment API: routes payments
server/src/index.js - API entry → Customer accounts: routes customers
server/src/index.js - API entry → Content and reviews: routes content
server/src/index.js - API entry → Contact messages: routes contact
server/src/index.js - API entry → Admin operations: routes admin
server/src/index.js - API entry → Settings API: routes settings
server/src/index.js - Payment API → PostgreSQL store: reads and writes
server/src/controllers/paymentController.js - Order API → PostgreSQL store: queries orders
server/src/controllers/orderController.js - Admin operations → PostgreSQL store: queries store data
server/src/controllers/adminController.js - Payment API → Order notifications: dispatches notices
- Order API → Order notifications: dispatches notices
server/src/controllers/orderController.js - Admin operations → Order notifications: uses notifications
server/src/controllers/adminController.js - Payment API → Razorpay: uses payment gateway
- Order notifications → Email delivery: delegates email
server/src/services/notificationService.js - Email delivery → PostgreSQL store: records email events
server/src/services/emailService.js