How subhash8729/goldenzone works
Golden Zone is a jewellery storefront with a separate authenticated admin dashboard, backed by an Express REST API and MySQL. The customer workflow spans browsing products, managing a cart and account, placing prepaid orders, and tracking them; admins manage orders, catalog, payments, reviews, customers, and site settings. The graph includes documented Razorpay and contact capabilities. Some routes and page implementations were not sampled, so their internal connections are shown only where README or indexed references support them.
Main entry points: app.js API Application · db.js MySQL · App.jsx Storefront Routes · CheckoutPage.jsx Shop and Checkout
Components 27
Customer Storefront
- Storefront Routes
client/src/App.jsx - Shop and Checkout
client/src/pages/CheckoutPage.jsx - Customer Auth
client/src/context/AuthContext.jsx - Cart State
client/src/context/CartContext.jsx - Storefront API Client
client/src/services/api.js - Contact Enquiries
client/src/pages/ContactPage.jsx
Admin Dashboard
- Admin Routes
admin/src/App.jsx - Admin Auth
admin/src/context/AdminAuthContext.jsx - Admin Operations
admin/src/pages/OrdersPage.jsx - Admin API Client
admin/src/services/api.js
REST API
- API Application
server/src/app.js - Auth Routes
server/src/routes/authRoutes.js - Product Routes
server/src/routes/productRoutes.js - Order Routes
server/src/routes/orderRoutes.js - Review Routes
server/src/routes/reviewRoutes.js
Commerce Services
- Authentication
server/src/controllers/authController.js - Catalog
server/src/controllers/productController.js - Order Processing
server/src/controllers/orderController.js - Payment Verification
server/src/controllers/paymentController.js - Review Moderation
server/src/controllers/reviewController.js
Data and Integrations
- MySQL
server/src/config/db.js - Razorpay Service
server/src/services/razorpayService.js - OTP Service
server/src/services/otpService.js
Other components
- Customer
- Administrator
- Razorpay
- Renflair SMS
Connections 33
- Customer → Storefront Routes: uses
README.md - Storefront Routes → Shop and Checkout: routes to
client/src/App.jsx - Storefront Routes → Customer Auth: provides
client/src/App.jsx - Storefront Routes → Cart State: provides
client/src/App.jsx - Shop and Checkout → Cart State: reads
client/src/pages/CheckoutPage.jsx - Shop and Checkout → Customer Auth: reads
client/src/pages/CheckoutPage.jsx - Customer Auth → Storefront API Client: calls
client/src/context/AuthContext.jsx - Shop and Checkout → Storefront API Client: calls
client/src/pages/CheckoutPage.jsx - Contact Enquiries → Storefront API Client: submits enquiry
client/src/pages/ContactPage.jsx - Storefront API Client → API Application: requests API
README.md - Administrator → Admin Routes: uses
README.md - Admin Routes → Admin Auth: checks session
admin/src/App.jsx - Admin Routes → Admin Operations: routes to
admin/src/App.jsx - Admin Auth → Admin API Client: calls
admin/src/context/AdminAuthContext.jsx - Admin API Client → API Application: requests API
README.md - API Application → Auth Routes: mounts
server/src/app.js - API Application → Product Routes: mounts
server/src/app.js - API Application → Order Routes: mounts
server/src/app.js - API Application → Review Routes: mounts
server/src/app.js - Auth Routes → Authentication: dispatches
server/src/routes/authRoutes.js - Product Routes → Catalog: dispatches
server/src/routes/productRoutes.js - Order Routes → Order Processing: dispatches
server/src/routes/orderRoutes.js - Review Routes → Review Moderation: dispatches
server/src/routes/reviewRoutes.js - Authentication → MySQL: queries
server/src/controllers/authController.js - Catalog → MySQL: queries
- Order Processing → MySQL: queries
server/src/controllers/orderController.js - Order Processing → Razorpay Service: creates orders
server/src/controllers/orderController.js - Payment Verification → MySQL: queries
server/src/controllers/paymentController.js - Payment Verification → Razorpay Service: verifies payments
server/src/controllers/paymentController.js - Review Moderation → MySQL: queries
server/src/controllers/reviewController.js - Razorpay Service → Razorpay: integrates
README.md - Authentication → OTP Service: uses
server/src/controllers/authController.js - OTP Service → Renflair SMS: sends OTP