How sureshraj-2004/fullstack-ecommerce-mern works
This repository is a MERN e-commerce application with a customer storefront, a separate admin interface, and a Node/Express backend. The main customer workflow is browsing product collections, opening a product, adding it to a cart, and viewing the cart; login/signup supplies authentication used by cart operations. The admin interface adds products and lists/removes them. The README also documents profiles, order history, and possible payment integration, but their implementation is not established by the excerpts. Backend and database links are based on README descriptions; the backend source was indexed as read but not excerpted.
Main entry points: index.js Backend API · Admin.jsx Admin workspace · Pages Shop pages · ShopContext.jsx Shop state
Components 19
Customer storefront
- Store routing
frontend/src/App.js - Shop pages
frontend/src/Pages - Product cards
frontend/src/Components/Item/Item.jsx - Product page
frontend/src/Pages/Product.jsx - Product display
frontend/src/Components/ProductDisplay/ProductDisplay.jsx
Customer commerce
- Shop state
frontend/src/Context/ShopContext.jsx - Cart page
frontend/src/Pages/Cart.jsx - Cart contents
frontend/src/Components/CartItems/CartItems.jsx - Login and signup
frontend/src/Pages/LoginSignup.jsx
Admin catalog
- Admin routing
admin/src/App.js - Admin workspace
admin/src/Pages/Admin.jsx - Catalog navigation
admin/src/Components/Sidebar/Sidebar.jsx - Add product
admin/src/Components/AddProduct/AddProduct.jsx - Product list
admin/src/Components/ListProduct/ListProduct.jsx
Backend services
- Backend API
backend/index.js - MongoDB
- Accounts and orders
backend/index.js
Other components
- Shopper
- Payment service
Connections 21
- Shopper → Store routing: browses
frontend/src/App.js - Store routing → Shop pages: routes to
frontend/src/App.js - Shop pages → Product cards: renders
frontend/src/Pages/ShopCategory.jsx - Shop pages → Product page: routes to
frontend/src/App.js - Product page → Product display: renders
frontend/src/Pages/Product.jsx - Product display → Shop state: adds item
frontend/src/Components/ProductDisplay/ProductDisplay.jsx - Shopper → Login and signup: authenticates
- Login and signup → Backend API: submits credentials
frontend/src/Pages/LoginSignup.jsx - Shop state → Backend API: requests products and cart
frontend/src/Context/ShopContext.jsx - Cart page → Cart contents: renders
frontend/src/Pages/Cart.jsx - Cart contents → Shop state: reads cart state
frontend/src/Components/CartItems/CartItems.jsx - Shopper → Admin routing: manages catalog
admin/src/App.js - Admin routing → Admin workspace: renders
admin/src/App.js - Admin workspace → Catalog navigation: renders
admin/src/Pages/Admin.jsx - Admin workspace → Add product: routes to
admin/src/Pages/Admin.jsx - Admin workspace → Product list: routes to
admin/src/Pages/Admin.jsx - Add product → Backend API: uploads product
admin/src/Components/AddProduct/AddProduct.jsx - Product list → Backend API: reads and removes
admin/src/Components/ListProduct/ListProduct.jsx - Backend API → MongoDB: uses
README.md - Backend API → Accounts and orders: supports
README.md - Backend API → Payment service: may integrate
README.md