How visagan09-creator/creatingx works
This is a custom-apparel ecommerce storefront with a product catalog, product discovery and detail views, a cart and checkout, payment handling, and an interactive T-shirt design studio. The main flow is shopper navigation through the hash router, catalog-backed browsing, cart management, checkout, and payment return. The graph includes the documented catalog, content, and customizer capabilities. Source excerpts do not show every runtime call, so uncertain links—particularly browser-to-server payment wiring—are omitted or marked unverified.
Main entry points: App.tsx App composition · useCart.ts Cart state · TShirtCustomizer.tsx T-shirt designer · components Storefront pages
Components 25
Storefront
- App composition
src/App.tsx - Hash router
src/hooks/useRouter.ts - Storefront pages
src/components - Product browsing
src/components/Collection.tsx - Product details
src/components/ProductDetailsPage.tsx - TOTD details
src/components/TOTDProductDetailsPage.tsx - Product search
src/components/SearchDrawer.tsx
Shopping and payment
- Cart state
src/hooks/useCart.ts - Cart drawer
src/components/CartDrawer.tsx - Checkout
src/components/CheckoutPage.tsx - Payment return
src/components/PaymentReturnPage.tsx - Payment API client
src/lib/paymentApi.ts
Catalog and content
- Catalog hook
src/hooks/useCatalog.ts - Firestore content
src/data/firestoreContent.ts - Static site data
src/data/siteData.ts - Firebase client
src/lib/firebase.ts - Firestore
Design studio
- Customize entry
src/components/Customize.tsx - T-shirt designer
src/features/tshirt-customizer/TShirtCustomizer.tsx - 3D garment viewer
src/features/tshirt-customizer/components/TShirt3DViewer.tsx - Design presets
src/features/tshirt-customizer/presets.ts
Backend services
- Gateway adapter
gateway/index.cjs - Cashfree adapter
gateway/cashfree.cjs - Payment server
server.cjs
Other components
- Shopper
Connections 30
- Shopper → App composition: browses
- App composition → Hash router: uses routing
src/App.tsx - App composition → Storefront pages: renders
src/App.tsx - App composition → Product browsing: renders
src/App.tsx - App composition → Product details: renders
src/App.tsx - App composition → TOTD details: renders
src/App.tsx - App composition → Product search: renders
src/App.tsx - App composition → Cart state: uses
src/App.tsx - App composition → Catalog hook: uses
src/App.tsx - App composition → Cart drawer: renders
src/App.tsx - App composition → Checkout: renders
src/App.tsx - App composition → Payment return: renders
src/App.tsx - App composition → Customize entry: renders
src/App.tsx - Hash router → Storefront pages: selects page
src/App.tsx - Catalog hook → Firestore content: loads content
src/hooks/useCatalog.ts - Firestore content → Firebase client: uses client
src/data/firestoreContent.ts - Firebase client → Firestore: connects
- Storefront pages → Static site data: uses content
src/components/About.tsx - Product browsing → Product search: shares products
- Product details → Cart state: adds items
src/App.tsx - TOTD details → Cart state: adds items
src/App.tsx - Cart drawer → Cart state: displays state
src/App.tsx - Checkout → Payment API client: requests payment
src/components/CheckoutPage.tsx - Payment return → Payment API client: checks status
src/components/PaymentReturnPage.tsx - Payment server → Gateway adapter: delegates payments
server.cjs - Gateway adapter → Cashfree adapter: dispatches to
gateway/index.cjs - Customize entry → T-shirt designer: launches
- T-shirt designer → 3D garment viewer: renders preview
src/features/tshirt-customizer/TShirtCustomizer.tsx - T-shirt designer → Design presets: uses designs
src/features/tshirt-customizer/TShirtCustomizer.tsx - Payment API client → Payment server: calls endpoint