How arunvineethj/secureops-pipeline works
This MERN storefront supports shopper and administrator workflows: users authenticate, browse products, manage a cart and profile, place and review orders, while admins manage products and order status. React routes and Redux feature state drive API requests to Express routes/controllers, which operate on MongoDB models. The graph retains README-described feature areas even where their implementation was not sampled; edges are limited to relationships explicit in excerpts, the source index, or README, so several feature-to-backend links are omitted.
Main entry points: App.js Application routes · useFetchLoggedInUserDetails.js Account data loading · index.js API server · Auth.js Auth workflows
Components 29
React storefront
- Application routes
frontend/src/App.js - Auth state and flows
frontend/src/features/auth/AuthSlice.jsx - Auth bootstrap
frontend/src/hooks/useAuth/useAuthCheck.js - Account data loading
frontend/src/hooks/useAuth/useFetchLoggedInUserDetails.js - Catalog browsing
frontend/src/features/products - Shopping cart
frontend/src/features/cart - Checkout and orders
frontend/src/features/checkout - Profile and addresses
frontend/src/features/user - Wishlist
frontend/src/features/wishlist - Product reviews
frontend/src/features/review - Admin management
frontend/src/features/admin - HTTP client
frontend/src/config/axios.js
Express API
- API server
backend/index.js - Auth endpoints
backend/routes/Auth.js - Review endpoints
backend/routes/Review.js - Review operations
backend/controllers/Review.js - Product operations
backend/controllers/Product.js
MongoDB domain
- Database connection
backend/database/db.js - User records
backend/models/User.js - OTP records
backend/models/OTP.js - Product records
backend/models/Product.js - Review records
backend/models/Review.js - Order records
backend/models/Order.js - Product seed data
backend/seed/Product.js
Identity and security
- Auth workflows
backend/controllers/Auth.js - Token verification
backend/middleware/VerifyToken.js - Email delivery
backend/utils/Emails.js
Other components
- Shopper
- Administrator
Connections 35
- Shopper → Application routes: uses
- Administrator → Application routes: uses
- Application routes → Auth bootstrap: checks auth
frontend/src/App.js - Auth bootstrap → Auth state and flows: dispatches check
frontend/src/hooks/useAuth/useAuthCheck.js - Application routes → Account data loading: loads account
frontend/src/App.js - Account data loading → Auth state and flows: reads user
frontend/src/hooks/useAuth/useFetchLoggedInUserDetails.js - Account data loading → Shopping cart: loads cart
frontend/src/hooks/useAuth/useFetchLoggedInUserDetails.js - Account data loading → Profile and addresses: loads profile
frontend/src/hooks/useAuth/useFetchLoggedInUserDetails.js - Account data loading → Wishlist: loads wishlist
frontend/src/hooks/useAuth/useFetchLoggedInUserDetails.js - Application routes → Catalog browsing: routes to
frontend/src/App.js - Application routes → Shopping cart: routes to
frontend/src/App.js - Application routes → Checkout and orders: routes to
frontend/src/App.js - Application routes → Profile and addresses: routes to
frontend/src/App.js - Application routes → Wishlist: routes to
frontend/src/App.js - Application routes → Admin management: routes to
frontend/src/App.js - Auth state and flows → HTTP client: calls API
- Product reviews → HTTP client: calls API
frontend/src/features/review/ReviewApi.jsx - HTTP client → API server: HTTP requests
- API server → Database connection: connects
backend/index.js - API server → Auth endpoints: mounts
backend/index.js - API server → Review endpoints: mounts
backend/index.js - Auth endpoints → Auth workflows: dispatches
backend/routes/Auth.js - Auth endpoints → Token verification: checks token
backend/routes/Auth.js - Review endpoints → Review operations: dispatches
backend/routes/Review.js - Auth workflows → User records: reads and writes
backend/controllers/Auth.js - Auth workflows → OTP records: manages OTP
backend/controllers/Auth.js - Auth workflows → Email delivery: sends email
backend/controllers/Auth.js - Review operations → Review records: reads and writes
backend/controllers/Review.js - Product operations → Product records: operates on
backend/controllers/Product.js - Product seed data → Product records: seeds
backend/seed/Product.js - Checkout and orders → Order records: places orders
- Admin management → Product records: manages catalog
- Admin management → Order records: manages orders
- Catalog browsing → Review records: reads and updates ratings
- Profile and addresses → User records: manages profile