How bingazy2022/e-commerce-bingazyshop works
BingazyShop is a React storefront. Shoppers browse a product list, open product details, add items to a persistent cart, adjust quantities, and confirm a simulated checkout; the app also supports creating, editing, and deleting products through an API. The graph separates routing, catalog management, cart state, and checkout. ProductList, Home, modal, and error-page internals were not excerpted, so their connections are included only where the source index or App.js supports them; no backend implementation is shown.
Main entry points: App.js Routes and Layout · PeoductDetails.jsx Product Details · CartContext.jsx Cart Context · ProductList.jsx Product Listing
Components 18
App Shell
- Routes and Layout
src/App.js - Store Header
src/components/Header.jsx - Store Footer
src/components/Footer.jsx - Home View
src/components/Home.jsx - Error View
src/components/ErorrMass.jsx
Product Catalog
- Product Listing
src/components/products/ProductList.jsx - Product Card
src/components/products/ProductCard.jsx - Product Details
src/components/products/PeoductDetails.jsx - Create Product
src/components/products/CreatProduct.jsx - Edit Modal
src/components/products/EditModal.jsx - Delete Modal
src/components/products/DeleteModal.jsx - Product Fetch
src/useFetch.js
Cart State
- Cart Context
src/context/CartContext.jsx - Cart Panel
src/components/products/CartPage.jsx - Browser Storage
Checkout
- Payment Popup
src/components/products/PaymentPopup.jsx
Other components
- Shopper
- Product API
Connections 24
- Shopper → Routes and Layout: uses
src/App.js - Routes and Layout → Store Header: renders
src/App.js - Routes and Layout → Store Footer: renders
src/App.js - Routes and Layout → Product Listing: routes to
src/App.js - Routes and Layout → Product Details: routes to
src/App.js - Routes and Layout → Create Product: routes to
src/App.js - Routes and Layout → Error View: routes to
src/App.js - Routes and Layout → Cart Panel: renders
src/App.js - Routes and Layout → Payment Popup: renders
src/App.js - Store Header → Cart Context: reads and opens
src/components/Header.jsx - Product Listing → Product Fetch: loads products
src/components/products/ProductList.jsx - Product Listing → Product Card: renders
src/components/products/ProductList.jsx - Product Card → Cart Context: adds product
src/components/products/ProductCard.jsx - Product Details → Product Fetch: loads product
src/components/products/PeoductDetails.jsx - Product Details → Cart Context: adds product
src/components/products/PeoductDetails.jsx - Product Details → Edit Modal: renders
src/components/products/PeoductDetails.jsx - Product Details → Delete Modal: renders
src/components/products/PeoductDetails.jsx - Product Fetch → Product API: GET request
src/useFetch.js - Create Product → Product API: POST request
src/components/products/CreatProduct.jsx - Product Details → Product API: PUT and DELETE
src/components/products/PeoductDetails.jsx - Cart Context → Browser Storage: persists cart
src/context/CartContext.jsx - Cart Panel → Cart Context: reads and updates
src/components/products/CartPage.jsx - Cart Panel → Payment Popup: opens checkout
src/components/products/CartPage.jsx - Payment Popup → Cart Context: clears cart
src/components/products/PaymentPopup.jsx