How muhammadkashif20/e-commerce-frontend works
MKStore is a React e-commerce frontend. Users browse a product catalog, open product details or deals, and add items to a locally persisted cart; sign-up and login use Firebase, while cart and purchase routes are guarded by locally stored authentication data. The graph preserves the routed storefront, catalog, account, and cart areas. Source excerpts show catalog fetching and cart behavior, but README provides no additional capability documentation; some listed components were not sampled, so their internal relationships are omitted.
Main entry points: App.jsx Route application · Navbar.jsx Navigation bar · Products.jsx Product listing · Signup.jsx Sign-up
Components 27
Storefront and navigation
- Route application
src/App.jsx - Store layout
src/Components/Layout.jsx - Navigation bar
src/Components/Navbar/Navbar.jsx - Search field
src/Components/Navbar/SearchBar.jsx - Profile menu
src/Components/Navbar/ProfileMenu.jsx - Mobile menu
src/Components/Navbar/MobileMenu.jsx - Category links
src/Components/Navbar/Navlinks.jsx - Category dropdown
src/Components/Navbar/CategoryDropdown.jsx - Hero section
src/Components/HeroSection.jsx - About page
src/Components/About.jsx - Contact page
src/Components/Contact.jsx - Footer
src/Components/Footer.jsx
Product discovery
- Deals
src/Components/Deals.jsx - Product listing
src/Components/Products.jsx - Product detail
src/Components/Detail.jsx - Shop
src/Components/Shop.jsx
Accounts and access
- Sign-up
src/auth/Signup.jsx - Login
src/auth/Login.jsx - Firebase setup
src/auth/firebase.js - Route guard
src/Components/ProtectRoutes.jsx
Cart and checkout
- Cart state
src/context/cartContext.jsx - Cart page
src/Components/AddCart.jsx - Buy now
src/Components/BuyNow.jsx
Other components
- Shopper
- DummyJSON products
- Firebase services
- Browser local storage
Connections 31
- Shopper → Route application: opens routes
src/App.jsx - Route application → Store layout: wraps routes
src/App.jsx - Route application → Hero section: routes home
src/App.jsx - Route application → Product listing: routes home
src/App.jsx - Route application → Deals: routes deals
src/App.jsx - Route application → Product detail: routes detail
src/App.jsx - Route application → Shop: routes shop
src/App.jsx - Route application → About page: routes about
src/App.jsx - Route application → Contact page: routes contact
src/App.jsx - Route application → Footer: renders home
src/App.jsx - Route application → Login: routes login
src/App.jsx - Route application → Sign-up: routes signup
src/App.jsx - Route application → Route guard: guards routes
src/App.jsx - Route application → Cart page: routes cart
src/App.jsx - Route application → Buy now: routes purchase
src/App.jsx - Store layout → Navigation bar: renders
src/Components/Layout.jsx - Navigation bar → Search field: renders
src/Components/Navbar/Navbar.jsx - Navigation bar → Profile menu: renders
src/Components/Navbar/Navbar.jsx - Navigation bar → Mobile menu: renders
src/Components/Navbar/Navbar.jsx - Navigation bar → Category links: renders
src/Components/Navbar/Navbar.jsx - Category links → Category dropdown: renders
src/Components/Navbar/Navlinks.jsx - Product listing → DummyJSON products: fetches products
src/Components/Products.jsx - Product listing → Cart state: adds items
src/Components/Products.jsx - Cart state → Browser local storage: persists cart
src/context/cartContext.jsx - Route guard → Browser local storage: checks session
src/Components/ProtectRoutes.jsx - Cart page → Cart state: uses cart
src/Components/AddCart.jsx - Sign-up → Firebase setup: uses services
src/auth/Signup.jsx - Login → Firebase setup: uses services
src/auth/Login.jsx - Firebase setup → Firebase services: initializes
src/auth/firebase.js - Sign-up → Firebase services: creates account
src/auth/Signup.jsx - Login → Firebase services: authenticates
src/auth/Login.jsx