How saurabh-8585/mern-e-commerce-frontend works
This is a React e-commerce frontend. A shopper enters through the routed storefront, browses or searches products, views details and reviews, manages a cart, and proceeds through checkout to payment; authenticated users also manage wishlists and profile details. Admin routes provide product, order, user, and statistics management. The README documents backend-backed authentication, mail, and payment capabilities, but their server-side implementations are outside this repository. Some admin and checkout internals are unsampled, so those links are documented or left broad rather than inferred from filenames.
Main entry points: App.js Route application · Cart.jsx Cart and orders · ProductDetail.jsx Product details · HomePage.jsx Home and discovery
Components 29
Storefront
- Route application
src/App.js - Home and discovery
src/Pages/Home/HomePage.jsx - Product search
src/Components/SearchBar/SearchBar.jsx - Category listing
src/SingleCategory/SingleCategory.jsx - Category banners
src/Helpers/HomePageBanner.js
Shopping
- Product details
src/Pages/Detail/ProductDetail.jsx - Product reviews
src/Components/Review/ProductReview.jsx - Review card
src/Components/Card/Comment Card/CommentCard.jsx - Cart and orders
src/Pages/Cart/Cart.jsx - Cart item
src/Components/Card/CartCard/CartCard.jsx - Order summary
src/Pages/Cart/OrderSummary.jsx - Checkout form
src/Components/Checkout/CheckoutForm.jsx - Payment confirmation
src/Pages/Payment/PaymentSuccess.jsx - Wishlist
src/Pages/WhisList/Wishlist.jsx
Identity
- Customer login
src/Auth/Login/Login.jsx - Customer registration
src/Auth/Register/Register.jsx - Profile and password
src/Pages/Update_User/UpdateDetails.jsx
Administration
- Admin authentication
src/Admin/Auth/Login/AdminLogin.jsx - Admin registration
src/Admin/Auth/Register/AdminRegister.jsx - Admin dashboard
src/Admin/Pages/AdminHomePage.jsx - Admin sections
src/Admin/Components/AdminTabs.jsx - Product management
src/Admin/Pages/SingleProduct.jsx - User management
src/Admin/Pages/SingleUserPage.jsx - Product statistics
src/Admin/Components/Charts/ProductChart.jsx
Shared state
- Cart and wishlist state
src/Context/Context.js
Other components
- Shopper
- E-commerce backend
- Payment gateway
- Mail service
Connections 41
- Shopper → Route application: opens
src/App.js - Route application → Home and discovery: routes to
src/App.js - Route application → Category listing: routes to
src/App.js - Route application → Product details: routes to
src/App.js - Route application → Cart and orders: routes to
src/App.js - Route application → Wishlist: routes to
src/App.js - Route application → Checkout form: routes to
src/App.js - Route application → Payment confirmation: routes to
src/App.js - Route application → Customer login: routes to
src/App.js - Route application → Customer registration: routes to
src/App.js - Route application → Profile and password: routes to
src/App.js - Route application → Admin authentication: routes to
src/App.js - Route application → Admin registration: routes to
src/App.js - Route application → Admin dashboard: routes to
src/App.js - Route application → User management: routes to
src/App.js - Route application → Product management: routes to
src/App.js - Home and discovery → Product search: renders
src/Pages/Home/HomePage.jsx - Home and discovery → Category banners: uses data
src/Pages/Home/HomePage.jsx - Category listing → E-commerce backend: fetches listings
src/SingleCategory/SingleCategory.jsx - Category listing → Product details: links products
src/SingleCategory/SingleCategory.jsx - Product details → E-commerce backend: updates cart and wishlist
src/Pages/Detail/ProductDetail.jsx - Product details → Product reviews: shows reviews
src/Pages/Detail/ProductDetail.jsx - Product reviews → E-commerce backend: fetches and submits
src/Components/Review/ProductReview.jsx - Product reviews → Review card: renders
src/Components/Review/ProductReview.jsx - Cart and orders → E-commerce backend: reads and changes orders
src/Pages/Cart/Cart.jsx - Cart and orders → Cart item: renders
src/Pages/Cart/Cart.jsx - Cart and orders → Order summary: renders
src/Pages/Cart/Cart.jsx - Cart and orders → Cart and wishlist state: uses state
src/Pages/Cart/Cart.jsx - Wishlist → Cart and wishlist state: uses state
src/Pages/WhisList/Wishlist.jsx - Checkout form → Cart and wishlist state: reads cart state
src/Components/Checkout/CheckoutForm.jsx - Checkout form → Payment gateway: processes payment
README.md - Customer login → E-commerce backend: authenticates
README.md - Customer registration → E-commerce backend: creates account
README.md - Profile and password → E-commerce backend: updates account
src/Pages/Update_User/UpdateDetails.jsx - E-commerce backend → Mail service: sends mail
README.md - Admin dashboard → Admin sections: renders sections
src/Admin/Pages/AdminHomePage.jsx - Admin dashboard → Product statistics: shows statistics
README.md - Product management → E-commerce backend: manages products
src/Admin/Pages/SingleProduct.jsx - User management → E-commerce backend: manages user data
README.md - Admin registration → E-commerce backend: registers admin
README.md - Admin authentication → E-commerce backend: authenticates admin
README.md