How vijiyaragavan26/shop-nova works
ShopNova is a full-stack storefront and commerce platform. Customers discover and filter products, manage a cart, check out, pay, and track orders; signed-in users also manage profiles, addresses, wishlists, and reviews. Administrators manage products, inventory, orders, customers, and metrics. The graph separates the React experience and API client from Express domain handlers and MongoDB-backed models. Some routes and controllers were not excerpted, so links for documented capabilities rely on the README or source-index references rather than inspected implementation details.
Main entry points: server.js API server · App.jsx App routes · api.js API client · Product.js Product records
Components 31
Storefront experience
- App routes
frontend/src/App.jsx - Catalog discovery
frontend/src/pages/Shop.jsx - Product details
frontend/src/pages/ProductDetails.jsx - Cart and checkout
frontend/src/pages/Checkout.jsx - Order tracking
frontend/src/pages/OrderTracking.jsx - Customer portal
frontend/src/dashboards/CustomerDashboard.jsx - Admin portal
frontend/src/dashboards/AdminDashboard.jsx
Client state and API
- Authentication state
frontend/src/context/AuthContext.jsx - Cart state
frontend/src/context/CartContext.jsx - Wishlist state
frontend/src/context/WishlistContext.jsx - API client
frontend/src/services/api.js
Commerce API
- API server
backend/server.js - Authentication
backend/controllers/authController.js - Catalog management
backend/controllers/productController.js - Cart operations
backend/controllers/cartController.js - Order fulfillment
backend/controllers/orderController.js - Payment processing
backend/controllers/paymentController.js - Admin operations
backend/controllers/adminController.js - Reviews
backend/controllers/reviewController.js - Saved addresses
backend/controllers/addressController.js - Wishlist operations
backend/controllers/wishlistController.js
Commerce data
- Product records
backend/models/Product.js - User records
backend/models/User.js - Cart records
backend/models/Cart.js - Order records
backend/models/Order.js - Payment records
backend/models/Payment.js - Review records
backend/models/Review.js - Category records
backend/models/Category.js - Address records
backend/models/Address.js - Wishlist records
backend/models/Wishlist.js
Other components
- Shopper
Connections 44
- Shopper → App routes: browses
README.md - App routes → Catalog discovery: routes to
frontend/src/App.jsx - App routes → Product details: routes to
frontend/src/App.jsx - App routes → Cart and checkout: routes to
frontend/src/App.jsx - App routes → Order tracking: routes to
frontend/src/App.jsx - App routes → Customer portal: routes to
frontend/src/App.jsx - App routes → Admin portal: routes to
frontend/src/App.jsx - Product details → Cart state: updates
frontend/src/pages/ProductDetails.jsx - Product details → Wishlist state: updates
frontend/src/pages/ProductDetails.jsx - Cart and checkout → Cart state: uses
- Catalog discovery → API client: requests catalog
- Product details → API client: requests details
frontend/src/pages/ProductDetails.jsx - Authentication state → API client: calls auth
frontend/src/context/AuthContext.jsx - Cart state → API client: calls cart
frontend/src/context/CartContext.jsx - Wishlist state → API client: calls wishlist
frontend/src/context/WishlistContext.jsx - API client → API server: sends requests
frontend/src/services/api.js - API server → Authentication: routes auth
- API server → Catalog management: routes catalog
- API server → Cart operations: routes cart
- API server → Order fulfillment: routes orders
- API server → Payment processing: routes payments
- API server → Admin operations: routes admin
- API server → Reviews: routes reviews
- API server → Saved addresses: routes addresses
- API server → Wishlist operations: routes wishlist
- Authentication → User records: reads and writes
backend/controllers/authController.js - Catalog management → Product records: reads and writes
backend/controllers/productController.js - Catalog management → Category records: reads
backend/controllers/productController.js - Cart operations → Cart records: reads and writes
backend/controllers/cartController.js - Cart operations → Product records: reads
backend/controllers/cartController.js - Order fulfillment → Order records: reads and writes
backend/controllers/orderController.js - Order fulfillment → Product records: reads and updates
backend/controllers/orderController.js - Order fulfillment → Cart records: reads and clears
backend/controllers/orderController.js - Order fulfillment → Payment records: records payment
backend/controllers/orderController.js - Payment processing → Payment records: manages
- Admin operations → Order records: reads and updates
backend/controllers/adminController.js - Admin operations → Product records: reads and updates
backend/controllers/adminController.js - Admin operations → User records: reads
backend/controllers/adminController.js - Reviews → Review records: reads and creates
backend/controllers/reviewController.js - Reviews → Order records: checks purchase
backend/controllers/reviewController.js - Reviews → Product records: checks product
backend/controllers/reviewController.js - Review records → Product records: updates ratings
backend/models/Review.js - Saved addresses → Address records: manages
- Wishlist operations → Wishlist records: manages