How narankhadka/ecommerce-springboot-project works
SabaikoPasal is a multi-vendor marketplace: customers discover products, manage a cart, check out and track orders; sellers manage listings and fulfillment; admins oversee the marketplace. The graph combines the README’s documented capabilities with the sampled React routing, authentication, product-filter and review code. Most controller-to-service wiring and the eSewa flow are not sampled, so those links are shown only where the README documents the API workflow; uncertain internal calls are omitted.
Main entry points: api.js HTTP client · service Business services · index.js API actions · App.jsx React routes
Components 27
Customer storefront
- React routes
efont/src/App.jsx - Redux state
efont/src/store/reducers/store.js - API actions
efont/src/store/actions/index.js - HTTP client
efont/src/api/api.js - Catalog browsing
efont/src/components/products/Products.jsx - Shopping cart
efont/src/components/cart/Cart.jsx - Checkout
efont/src/components/checkout/Checkout.jsx - Seller dashboard
efont/src/components/admin/dashboard/SellerDashboard.jsx - Admin dashboard
efont/src/components/admin/dashboard/Dashboard.jsx
Commerce services
- Product API
backend/src/main/java/com/ecommerce/project/controller/ProductController.java - Cart API
backend/src/main/java/com/ecommerce/project/controller/CartController.java - Orders API
backend/src/main/java/com/ecommerce/project/controller/OrderController.java - Payment API
backend/src/main/java/com/ecommerce/project/controller/PaymentController.java - Reviews API
backend/src/main/java/com/ecommerce/project/controller/ReviewController.java - Recommendations
backend/src/main/java/com/ecommerce/project/service/RecommendationServiceImpl.java
Identity and access
- Authentication API
backend/src/main/java/com/ecommerce/project/controller/AuthController.java - JWT security
backend/src/main/java/com/ecommerce/project/security
Seller and admin
- Seller and admin APIs
backend/src/main/java/com/ecommerce/project/controller - Promotion API
backend/src/main/java/com/ecommerce/project/controller/PromotionController.java
Persistence and integrations
- Business services
backend/src/main/java/com/ecommerce/project/service - JPA repositories
backend/src/main/java/com/ecommerce/project/repositories - Marketplace database
- eSewa gateway
- Mail service
backend/src/main/java/com/ecommerce/project/service/EmailService.java
Other components
- Shopper
- Seller
- Administrator
Connections 34
- Shopper → React routes: browses and orders
- Seller → React routes: manages shop
- Administrator → React routes: oversees marketplace
- React routes → Redux state: provides state
- React routes → API actions: reloads cart
- Catalog browsing → API actions: dispatches search
- Shopping cart → API actions: manages cart
- Checkout → API actions: submits checkout
- Seller dashboard → API actions: requests dashboard
- Admin dashboard → API actions: requests analytics
- API actions → HTTP client: sends requests
- HTTP client → Product API: catalog requests
- HTTP client → Cart API: cart requests
- HTTP client → Orders API: order requests
- HTTP client → Payment API: payment requests
- HTTP client → Authentication API: authentication requests
- HTTP client → Seller and admin APIs: management requests
- HTTP client → Promotion API: promotion requests
- HTTP client → Reviews API: review requests
- Authentication API → JWT security: authenticates and issues JWT
- Authentication API → JPA repositories: reads and saves accounts
- Authentication API → Mail service: sends account mail
- Product API → Business services: delegates catalog work
- Cart API → Business services: delegates cart work
- Orders API → Business services: delegates order work
- Payment API → eSewa gateway: verifies payment
- Payment API → Business services: initiates order payment
- Reviews API → Business services: calls review service
- Business services → JPA repositories: reads and writes
- JPA repositories → Marketplace database: queries entities
- Recommendations → JPA repositories: queries purchase history
- Seller and admin APIs → Business services: delegates management
- Promotion API → Business services: delegates promotions
- Business services → Mail service: sends order notices