How yousefhassan13/my-shop works
This is a React storefront: shoppers browse and filter products, inspect details and reviews, manage a cart, then submit shipping details to confirm an order; account signup/login gates checkout. App.tsx owns routing and shared product, cart, and user state, with browser localStorage persistence and a product-fetch fallback to DummyJSON. The graph reflects the sampled route wiring and calls; no payment processor or order backend is evidenced, and unsampled source behavior is not inferred.
Main entry points: App.tsx App and routing · products.ts Product model and samples · Home.tsx Product browsing · Cart.tsx Cart management
Components 14
Storefront
- React bootstrap
src/main.jsx - App and routing
src/App.tsx - Header navigation
src/components/Header.tsx
Catalog
- Product browsing
src/pages/Home.tsx - Product card
src/components/ProductCard.tsx - Product details
src/pages/ProductDetail.tsx - Product model and samples
src/data/products.ts
Cart and Checkout
- Cart management
src/pages/Cart.tsx - Shipping and confirmation
src/pages/Checkout.tsx
Accounts and State
- Account signup
src/pages/Signup.tsx - Account login
src/pages/Login.tsx - Browser localStorage
Other components
- Shopper
- DummyJSON products
Connections 27
- Shopper → React bootstrap: opens storefront
src/main.jsx - React bootstrap → App and routing: renders
src/main.jsx - App and routing → Header navigation: renders
src/App.tsx - App and routing → Product browsing: routes to
src/App.tsx - App and routing → Product details: routes to
src/App.tsx - App and routing → Cart management: routes to
src/App.tsx - App and routing → Shipping and confirmation: routes to
src/App.tsx - App and routing → Account login: routes to
src/App.tsx - App and routing → Account signup: routes to
src/App.tsx - Product browsing → Product card: renders
src/pages/Home.tsx - Product browsing → App and routing: passes filters
src/App.tsx - Product card → App and routing: adds product
src/components/ProductCard.tsx - Product details → App and routing: adds or reviews
src/App.tsx - App and routing → Cart management: passes cart state
src/App.tsx - Cart management → App and routing: updates cart
src/pages/Cart.tsx - App and routing → Shipping and confirmation: passes cart state
src/App.tsx - Shipping and confirmation → App and routing: clears cart
src/pages/Checkout.tsx - App and routing → Account login: gates checkout
src/App.tsx - Account signup → Browser localStorage: saves account
src/pages/Signup.tsx - Account login → Browser localStorage: reads account
src/pages/Login.tsx - App and routing → Browser localStorage: persists state
src/App.tsx - App and routing → DummyJSON products: fetches products
src/App.tsx - App and routing → Product model and samples: uses product types
src/App.tsx - Product browsing → Product model and samples: uses product types
src/pages/Home.tsx - Product details → Product model and samples: uses product types
src/pages/ProductDetail.tsx - Cart management → Product model and samples: uses cart types
src/pages/Cart.tsx - Shipping and confirmation → Product model and samples: uses cart types
src/pages/Checkout.tsx