How vara1234567890/salessavvy works
SalesSavvy is a web storefront with separate customer and administrator journeys: customers authenticate, browse products, manage a cart, pay, and view orders; administrators manage products and users and inspect business metrics. The React router selects the screens, which make requests to the Spring backend. The tree identifies backend controllers, services, and repositories, but their implementations were not sampled, so internal backend call and persistence relationships are not asserted. Checkout’s Razorpay interaction is visible in the cart screen.
Main entry points: AppRoutes.jsx App routes · AdminDashboard.jsx Admin dashboard · CartPage.jsx Cart and checkout · LoginPage.jsx Customer login
Components 23
Customer frontend
- App routes
SalesSavvy/frontend/src/AppRoutes.jsx - Customer login
SalesSavvy/frontend/src/LoginPage.jsx - Registration
SalesSavvy/frontend/src/RegistrationPage.jsx - Storefront
SalesSavvy/frontend/src/CustomerHomePage.jsx - Product listing
SalesSavvy/frontend/src/ProductList.jsx - Cart and checkout
SalesSavvy/frontend/src/CartPage.jsx - Order history
SalesSavvy/frontend/src/OrdersPage.jsx - Admin login
SalesSavvy/frontend/src/AdminLogin.jsx - Admin dashboard
SalesSavvy/frontend/src/AdminDashboard.jsx - Admin forms
SalesSavvy/frontend/src/CustomModal.jsx
Commerce backend
- Authentication API
SalesSavvy/src/main/java/com/example/demo/controllers/AuthController.java - Product API
SalesSavvy/src/main/java/com/example/demo/controllers/ProductController.java - Cart API
SalesSavvy/src/main/java/com/example/demo/controllers/CartController.java - Order API
SalesSavvy/src/main/java/com/example/demo/controllers/OrderController.java - Payment API
SalesSavvy/src/main/java/com/example/demo/controllers/PaymentController.java - Payment service
SalesSavvy/src/main/java/com/example/demo/services/PaymentService.java
Admin operations
- Business reporting
SalesSavvy/src/main/java/com/example/demo/adminController/AdminBusinessController.java - Product administration
SalesSavvy/src/main/java/com/example/demo/adminController/AdminProductController.java - User administration
SalesSavvy/src/main/java/com/example/demo/adminController/AdminUserController.java
Persistence
- Data repositories
SalesSavvy/src/main/java/com/example/demo/repositories
Other components
- Customer
- Administrator
- Razorpay
Connections 20
- Customer → App routes: uses
- Administrator → App routes: uses
- App routes → Customer login: routes
- App routes → Registration: routes
- App routes → Storefront: routes
- App routes → Cart and checkout: routes
- App routes → Order history: routes
- App routes → Admin login: routes
- App routes → Admin dashboard: routes
- Storefront → Product listing: renders
- Customer login → Authentication API: POST login
- Cart and checkout → Cart API: cart requests
- Cart and checkout → Payment API: creates and verifies
- Cart and checkout → Razorpay: opens checkout
- Order history → Order API: fetches orders
- Admin dashboard → Admin forms: opens forms
- Admin dashboard → Business reporting: requests reports
- Admin dashboard → Product administration: product requests
- Admin dashboard → User administration: user requests
- Payment API → Payment service: delegates