How sonalpal/softprotechmart works
SoftproTechMart is an electronics storefront with customer shopping/account flows and an administrative catalog and order console. Customers browse products, manage a cart and addresses, and place and track orders; admins manage catalog, inventory, users, complaints, and order status. The backend exposes these domains through Express routes backed by MongoDB models. The README is a template, so capabilities and relationships below are based on the tree and shown source/index references; unsampled routes and pages are grouped conservatively.
Main entry points: App.jsx Route Application · index.js HTTP API Server · orderRoute.js Order Processing · paymentRoute.js Payment Processing
Components 32
Storefront
- Route Application
frontend/src/App.jsx - Store Home
frontend/src/pages/Home.jsx - Product Browsing
frontend/src/pages/Products.jsx - Product Details
frontend/src/pages/ProductDetails.jsx - Site Navigation
frontend/src/components/Navbar.jsx - Site Footer
frontend/src/components/Footer.jsx
Accounts
- Registration and Login
frontend/src/pages/user - Customer Account
frontend/src/pages/user - User API
backend/routes/userRoute.js - User Records
backend/models/User.js - Email Verification
backend/models/EmailVerification.js
Commerce
- Cart and Checkout
frontend/src/pages/user/Cart.jsx - Address Management
frontend/src/pages/user/Address.jsx - Order History
frontend/src/pages/user/MyOrders.jsx - Order Processing
backend/routes/orderRoute.js - Payment Processing
backend/routes/paymentRoute.js - Cart Records
backend/models/Cart.js - Order Records
backend/models/Order.js - Order Items
backend/models/OrderItem.js - Stock Adjustment
backend/utils/stockHelper.js - Product Records
backend/models/Product.js
Administration
- Admin Console
frontend/src/pages/admin - Admin API
backend/routes/adminRoute.js - Catalog APIs
backend/routes/productRoute.js - Category API
backend/routes/categoryRoute.js - Complaint API
backend/routes/complaintRoute.js
Backend Platform
- HTTP API Server
backend/index.js - MongoDB Connection
backend/config/db.js - Address API
backend/routes/addressRoute.js - Cart API
backend/routes/cartRoute.js
Other components
- Shopper
- Administrator
Connections 39
- Shopper → Route Application: uses storefront
frontend/src/App.jsx - Administrator → Route Application: opens console
frontend/src/App.jsx - Route Application → Store Home: routes to
frontend/src/App.jsx - Route Application → Product Browsing: routes to
frontend/src/App.jsx - Route Application → Product Details: routes to
frontend/src/App.jsx - Route Application → Registration and Login: routes to
frontend/src/App.jsx - Route Application → Customer Account: routes to
frontend/src/App.jsx - Route Application → Cart and Checkout: routes to
frontend/src/App.jsx - Route Application → Address Management: routes to
frontend/src/App.jsx - Route Application → Order History: routes to
frontend/src/App.jsx - Route Application → Admin Console: routes to
frontend/src/App.jsx - Shopper → Product Details: views item
- Product Details → Catalog APIs: fetches product
frontend/src/pages/ProductDetails.jsx - Admin Console → Admin API: uses API
- Admin Console → Catalog APIs: manages catalog
- Admin Console → Category API: manages categories
- Admin Console → Complaint API: handles complaints
- HTTP API Server → MongoDB Connection: connects MongoDB
backend/index.js - HTTP API Server → Admin API: mounts routes
backend/index.js - HTTP API Server → Category API: mounts routes
backend/index.js - HTTP API Server → Catalog APIs: mounts routes
backend/index.js - HTTP API Server → User API: mounts routes
backend/index.js - HTTP API Server → Cart API: mounts routes
backend/index.js - HTTP API Server → Order Processing: mounts routes
backend/index.js - HTTP API Server → Address API: mounts routes
backend/index.js - HTTP API Server → Complaint API: mounts routes
backend/index.js - HTTP API Server → Payment Processing: mounts routes
backend/index.js - User API → User Records: reads and writes
backend/routes/userRoute.js - User API → Email Verification: verifies email
backend/routes/userRoute.js - Order Processing → Cart Records: reads and clears
backend/routes/orderRoute.js - Order Processing → Product Records: reads product
backend/routes/orderRoute.js - Order Processing → Order Records: creates and queries
backend/routes/orderRoute.js - Order Processing → Order Items: creates items
backend/routes/orderRoute.js - Order Processing → Stock Adjustment: decrements stock
backend/routes/orderRoute.js - Stock Adjustment → Product Records: updates stock
backend/utils/stockHelper.js - Payment Processing → Cart Records: uses cart
backend/routes/paymentRoute.js - Payment Processing → Order Records: uses orders
backend/routes/paymentRoute.js - Payment Processing → Order Items: uses order items
backend/routes/paymentRoute.js - Payment Processing → Stock Adjustment: adjusts stock
backend/routes/paymentRoute.js