How jsma3005/stroy-store works
This is a React storefront for building products and wallpaper into a cart and submitting an order. The principal flow is browse a catalog item, add or adjust it in the cart, then submit customer details and purchases to the order API. The app also exposes category and wallpaper browsing, a promotional home page, and responsive navigation. Edges are limited to relationships shown in excerpts or the SOURCE INDEX; unsampled page behavior and backend processing are not inferred.
Main entry points: App.tsx Storefront routes · Wallpapers/index.tsx Wallpaper routes · api.ts API client · Cart/index.tsx Cart page
Components 24
App shell
- Storefront routes
src/app/App.tsx - API client
src/configs/api.ts
Catalog browsing
- Home page
src/pages/Main/index.tsx - Home sections
src/pages/Main/components - Category listing
src/pages/Categories/index.tsx - Product detail
src/pages/Product/index.tsx - Wallpaper routes
src/pages/Wallpapers/index.tsx - Wallpaper brands
src/pages/Wallpapers/pages/Brands/index.tsx - Wallpaper collections
src/pages/Wallpapers/pages/Collections/index.tsx - Wallpaper list
src/pages/Wallpapers/pages/WallpapersList/index.tsx - Wallpaper detail
src/pages/Wallpapers/pages/Wallpaper/index.tsx
Cart and ordering
- Cart page
src/pages/Cart/index.tsx - Cart state
src/state/cart.ts - Cart actions
src/hooks/useCart.ts - Order form
src/pages/Cart/components/OrderModal/index.tsx - Order confirmation
src/pages/Cart/components/SuccessModal/index.tsx
Shared interface
- Page layouts
src/elements/layouts - Responsive header
src/elements/sections/Header/index.tsx - Mobile navigation
src/elements/sections/Header/components/MobileHeader/index.tsx - Store footer
src/elements/sections/Footer/index.tsx - Not found page
src/components/NotFound/index.tsx
Other components
- Shopper
- Browser storage
- Store API
Connections 28
- Shopper → Storefront routes: opens
- Storefront routes → Home page: routes to
src/app/App.tsx - Storefront routes → Category listing: routes to
src/app/App.tsx - Storefront routes → Product detail: routes to
src/app/App.tsx - Storefront routes → Wallpaper routes: routes to
src/app/App.tsx - Storefront routes → Cart page: routes to
src/app/App.tsx - Storefront routes → Not found page: routes to
src/app/App.tsx - Storefront routes → Cart state: initializes from
src/app/App.tsx - Browser storage → Storefront routes: provides cart
src/app/App.tsx - Home page → Home sections: renders
src/pages/Main/index.tsx - Wallpaper routes → Wallpaper brands: routes to
- Wallpaper routes → Wallpaper collections: routes to
- Wallpaper routes → Wallpaper list: routes to
- Wallpaper routes → Wallpaper detail: routes to
- Product detail → API client: requests product
src/pages/Product/index.tsx - Wallpaper detail → API client: requests wallpaper
src/pages/Wallpapers/pages/Wallpaper/index.tsx - Responsive header → API client: requests categories
src/elements/sections/Header/index.tsx - API client → Store API: sends requests
- Product detail → Cart actions: updates cart
src/pages/Product/index.tsx - Wallpaper detail → Cart actions: updates cart
src/pages/Wallpapers/pages/Wallpaper/index.tsx - Cart page → Cart actions: uses actions
src/pages/Cart/index.tsx - Cart page → Order form: opens
src/pages/Cart/index.tsx - Cart page → Order confirmation: opens
src/pages/Cart/index.tsx - Order form → Cart actions: reads and resets
src/pages/Cart/components/OrderModal/index.tsx - Order form → API client: submits order
src/pages/Cart/components/OrderModal/index.tsx - Order form → Order confirmation: opens on success
src/pages/Cart/components/OrderModal/index.tsx - Responsive header → Mobile navigation: renders on mobile
src/elements/sections/Header/index.tsx - Storefront routes → Page layouts: wraps routes
src/app/App.tsx