How anjalikumawat2227-beep/full works
This is a role-based shopping application: users register or log in, then enter buyer or seller areas. Buyers can browse products, view cart and order pages; sellers can create, edit, and manage products, including image uploads. The sampled backend implements authentication and product operations, while the tree identifies additional client pages and API modules. Some route handlers, client API implementations, cart/order behavior, and database configuration were not sampled, so their internal connections are left unspecified.
Main entry points: AppRoutes.jsx App routes · buyerRoutes.jsx Buyer routes · sellerRoutes.jsx Seller routes · app.js Express app
Components 31
Client app
- Client entry
client/src/main.jsx - App routes
client/src/app/routes/AppRoutes.jsx - Buyer routes
client/src/app/routes/buyerRoutes.jsx - Seller routes
client/src/app/routes/sellerRoutes.jsx
Authentication
- Login and register
client/src/feature/auth/ui/pages/Login.jsx - Auth hook
client/src/feature/auth/hooks/useAuth.js - Auth actions
client/src/feature/auth/state/authAction.jsx - Auth state
client/src/feature/auth/state/auth.slice.jsx
Buyer experience
- Product browsing
client/src/feature/userBoard/ui/pages/Products.jsx - Home page
client/src/feature/userBoard/ui/pages/Home.jsx - Buyer hook
client/src/feature/userBoard/hook/useBuyerHook.js - Product API
client/src/feature/userBoard/api/product.api.js - Cart page
client/src/feature/userBoard/ui/pages/Cart.jsx - Orders page
client/src/feature/userBoard/ui/pages/Oderes.jsx
Seller experience
- Seller dashboard
client/src/feature/sellerBoard/ui/pages/DasBoard.jsx - My products
client/src/feature/sellerBoard/ui/pages/MyProducts.jsx - Product editor
client/src/feature/sellerBoard/ui/pages/AddProducts.jsx - Seller hook
client/src/feature/sellerBoard/hook/useSeller.js - Seller product API
client/src/feature/sellerBoard/api/sellProductApi.js
Backend
- Server startup
server/src/server.js - Express app
server/src/app/app.js - Auth routes
server/src/routers/auth.route.js - Product routes
server/src/routers/product.route.js - Auth operations
server/src/controller/auth.controller.js - Product operations
server/src/controller/products.controller.js - User records
server/src/model/user.model.js - Product records
server/src/model/products.module.js - Image storage
server/src/services/storage.service.js
Other components
- Shopper
- Seller
- ImageKit
Connections 23
- Client entry → App routes: renders
- App routes → Auth actions: dispatches session lookup
- App routes → Buyer routes: selects buyer routes
- App routes → Seller routes: selects seller routes
- Buyer routes → Product browsing: routes to
- Buyer routes → Cart page: routes to
- Buyer routes → Orders page: routes to
- Seller routes → Seller dashboard: routes to
- Seller routes → My products: routes to
- Seller routes → Product editor: routes to
- Product browsing → Shopper: serves
- Seller dashboard → Seller: serves
- My products → Seller: serves
- Product editor → Seller: serves
- Buyer hook → Product API: calls
- Seller hook → Seller product API: calls
- Server startup → Express app: starts
- Express app → Auth routes: mounts
- Express app → Product routes: mounts
- Auth operations → User records: reads and writes
- Product operations → Product records: reads and writes
- Product operations → Image storage: uploads images
- Image storage → ImageKit: uploads files