How tharun1305/fsd_project works
GV Clothing is implemented as a product-catalogue and B2B enquiry storefront with an admin management interface, backed by an Express API and local JSON storage with optional Firestore synchronization. The main customer journey is browsing the catalogue, viewing products, and submitting enquiries or sample requests; administrators review and update incoming requests. The README also advertises cart, checkout, and order workflows, but the supplied tree and excerpts do not establish corresponding implementation, so they are not mapped. Some page and API details are unsampled; only documented or excerpt-supported links are shown.
Main entry points: App.jsx App Router · DataContext.jsx Shared Store Data · ProductsPage.jsx Product Browsing · HomePage.jsx Home and Collections
Components 24
Storefront
- App Router
src/App.jsx - Navigation and Search
src/components/Header.jsx - Product Browsing
src/pages/ProductsPage.jsx - Product Card
src/components/ProductCard.jsx - Product Details
src/pages/ProductDetailPage.jsx - Home and Collections
src/pages/HomePage.jsx - Digital Catalogue
src/pages/DigitalCataloguePage.jsx - Catalogue Export
src/utils/pdfCatalog.js
Customer Requests
- Bulk Enquiry
src/pages/BulkEnquiryPage.jsx - Sample Requests
src/pages/SampleRequestPage.jsx - Callback Requests
src/pages/CallbackRequestPage.jsx - WhatsApp Contact
src/utils/whatsapp.js
Administration
- Admin Authentication
src/context/AuthContext.jsx - Admin Login
src/pages/AdminLoginPage.jsx - Admin Dashboard
src/pages/AdminDashboardPage.jsx
Backend and Storage
- Shared Store Data
src/context/DataContext.jsx - Fallback Content
src/data/fallbackData.js - Translations
src/utils/i18n.js - REST API
server/index.js - Data Access
server/db.js - Local JSON Records
server/data - Firestore Adapter
server/firestore.js
Other components
- Customer
Connections 28
- Customer → App Router: opens
README.md - App Router → Navigation and Search: renders
src/App.jsx - App Router → Product Browsing: routes to
src/App.jsx - App Router → Home and Collections: routes to
src/App.jsx - App Router → Digital Catalogue: routes to
src/App.jsx - Product Browsing → Product Card: renders
src/pages/ProductsPage.jsx - Home and Collections → Product Card: renders
src/pages/HomePage.jsx - Digital Catalogue → Catalogue Export: uses
src/pages/DigitalCataloguePage.jsx - Product Browsing → Shared Store Data: reads
src/pages/ProductsPage.jsx - Home and Collections → Shared Store Data: reads
src/pages/HomePage.jsx - Product Card → WhatsApp Contact: opens contact
src/components/ProductCard.jsx - WhatsApp Contact → WhatsApp: opens link
src/utils/whatsapp.js - Shared Store Data → Fallback Content: loads fallback
src/context/DataContext.jsx - Shared Store Data → Translations: uses translations
src/context/DataContext.jsx - App Router → Bulk Enquiry: routes to
src/App.jsx - App Router → Sample Requests: routes to
src/App.jsx - App Router → Callback Requests: routes to
src/App.jsx - Bulk Enquiry → Shared Store Data: submits
src/pages/BulkEnquiryPage.jsx - Sample Requests → Shared Store Data: submits
src/pages/SampleRequestPage.jsx - Callback Requests → Shared Store Data: submits
src/pages/CallbackRequestPage.jsx - Shared Store Data → REST API: requests data
src/context/DataContext.jsx - REST API → Data Access: calls
server/index.js - Data Access → Local JSON Records: reads and writes
server/db.js - Data Access → Firestore Adapter: syncs optionally
server/db.js - App Router → Admin Authentication: provides session
src/App.jsx - Admin Login → Admin Authentication: authenticates
src/pages/AdminLoginPage.jsx - Admin Authentication → REST API: posts login
src/context/AuthContext.jsx - Admin Dashboard → Shared Store Data: manages records
src/pages/AdminDashboardPage.jsx