How hexagondigitalservices/freshmart_app works
This repository appears to be a FreshMart grocery and hookah storefront paired with a separate administration interface and backend controllers. The customer workflow represented in sampled code covers cart review, address selection, checkout, payment return, and order tracking/cancellation; the admin interface includes catalog maintenance and order oversight. The sampled App components are placeholders, so there is no evidence connecting the page components to application routing. API implementation files are absent from the tree, and backend-controller relationships to the frontends cannot be verified.
Main entry points: src/main.jsx Frontend entry · src/main.jsx Admin entry · AdminOrdersView.jsx Order dashboard · StatusDropdown.jsx Status selector
Components 31
Customer storefront
- Frontend entry
frontend/src/main.jsx - Frontend app
frontend/src/App.jsx - Product browsing
frontend/src/components/ProductItemsPage/ProductItemsPage.jsx - Hookah browsing
frontend/src/components/HookahPage/HookahPage.jsx - Search results
frontend/src/components/SearchResults/SearchResults.jsx - Cart and checkout
frontend/src/components/CartPage/CartPage.jsx - Delivery addresses
frontend/src/components/AddressPage/AddressPage.jsx - Payment return
frontend/src/components/PaymentReturnPage/PaymentReturnPage.jsx - Order tracking
frontend/src/components/OrdersPage/OrdersPage.jsx
Administration
- Admin entry
admin/src/main.jsx - Admin app
admin/src/App.jsx - Catalog management
admin/src/components/AddItemsPage/AddItemsPage.jsx - Inventory editing
admin/src/components/ItemListPage/ItemListPage.jsx - Hookah management
admin/src/components/AddHookahPage/AddHookahPage.jsx - Hookah inventory
admin/src/components/HookahListPage/HookahListPage.jsx - Order dashboard
admin/src/components/DashboardPage/AdminOrdersView.jsx - Order details
admin/src/components/DashboardPage/components/OrderDetailsModal.jsx - Status selector
admin/src/components/DashboardPage/components/StatusDropdown.jsx - Status configuration
admin/src/components/DashboardPage/statusConfig.jsx
Backend services
- Order controller
backend/controllers/adminOrderController.js - Admin controller
backend/controllers/adminController.js - Category controller
backend/controllers/categoryController.js - Payment controller
backend/controllers/paymentController.js - User controller
backend/controllers/userController.js - Email utility
backend/utils/sendEmail.js
Customer identity
- Sign in
frontend/src/components/LoginPage/LoginPage.jsx - Sign up
frontend/src/components/SignupPage/SignupPage.jsx - Email verification
frontend/src/pages/auth/VerifyEmail.jsx - Password recovery
frontend/src/pages/auth/ForgotPassword.jsx - Password reset
frontend/src/pages/auth/ResetPassword.jsx
Other components
- Shopper
Connections 4
- Frontend entry → Frontend app: renders
frontend/src/main.jsx - Admin entry → Admin app: renders
admin/src/main.jsx - Order dashboard → Order details: renders
admin/src/components/DashboardPage/AdminOrdersView.jsx - Status selector → Status configuration: reads settings
admin/src/components/DashboardPage/components/StatusDropdown.jsx