How harishkumardraksharan/ecommerce-platform works
ShopSphere is a full-stack commerce platform: customers browse and compare products, manage carts and wishlists, check out, pay, and track orders; administrators manage the catalog, sales, and users. The React client communicates with Spring REST controllers, which delegate business operations through services to relational and document persistence. The README documents key capabilities, but many controllers and services were not sampled, so those branches are represented at subsystem level and their links rely on README statements rather than inspected calls.
Main entry points: controller REST controllers · App.jsx React application · repository JPA repositories · AuthService.java Authentication
Components 27
Customer experience
- React application
frontend/src/App.jsx - Authentication UI
frontend/src/pages/auth - Product discovery
frontend/src/pages/ProductListingPage.jsx - Cart and checkout
frontend/src/pages/CheckoutPage.jsx - Orders and payments
frontend/src/pages/OrderHistoryPage.jsx - Reviews
frontend/src/components/review/ReviewSection.jsx - Client state
frontend/src/context/AuthContext.jsx - HTTP client
frontend/src/services/api.js
Commerce API
- REST controllers
backend/src/main/java/com/shopsphere/controller
Business services
- Authentication
backend/src/main/java/com/shopsphere/service/AuthService.java - Catalog services
backend/src/main/java/com/shopsphere/service/ProductService.java - Cart service
backend/src/main/java/com/shopsphere/service/CartService.java - Order service
backend/src/main/java/com/shopsphere/service/OrderService.java - Payment service
backend/src/main/java/com/shopsphere/service/PaymentService.java - Review service
backend/src/main/java/com/shopsphere/service/ReviewService.java - Admin services
backend/src/main/java/com/shopsphere/service/AdminService.java - Email delivery
backend/src/main/java/com/shopsphere/service/EmailService.java - Image storage
backend/src/main/java/com/shopsphere/service/FileStorageService.java
Persistence
- Commerce records
backend/src/main/java/com/shopsphere/entity - JPA repositories
backend/src/main/java/com/shopsphere/repository - Review and activity documents
backend/src/main/java/com/shopsphere/document - Review repository
backend/src/main/java/com/shopsphere/repository/ReviewRepository.java
Administration
- Admin console
frontend/src/pages/admin
Other components
- Customer
- Razorpay
- MySQL
- MongoDB
Connections 30
- Customer → React application: uses
README.md - React application → Authentication UI: routes to
- React application → Product discovery: routes to
- React application → Cart and checkout: routes to
- React application → Orders and payments: routes to
- React application → Reviews: renders
- React application → Client state: provides
frontend/src/main.jsx - React application → HTTP client: requests data
README.md - HTTP client → REST controllers: calls REST API
README.md - REST controllers → Authentication: delegates
- REST controllers → Catalog services: delegates
backend/src/main/java/com/shopsphere/controller/ProductController.java - REST controllers → Cart service: delegates
backend/src/main/java/com/shopsphere/controller/CartController.java - REST controllers → Order service: delegates
- REST controllers → Payment service: delegates
- REST controllers → Review service: delegates
backend/src/main/java/com/shopsphere/controller/ReviewController.java - REST controllers → Admin services: delegates
- Authentication → JPA repositories: reads and writes
backend/src/main/java/com/shopsphere/service/AuthService.java - Cart service → JPA repositories: reads and writes
backend/src/main/java/com/shopsphere/service/CartService.java - Order service → JPA repositories: reads and writes
backend/src/main/java/com/shopsphere/service/OrderService.java - Review service → Review repository: reads and writes
backend/src/main/java/com/shopsphere/service/ReviewService.java - Review service → JPA repositories: updates ratings
backend/src/main/java/com/shopsphere/service/ReviewService.java - JPA repositories → Commerce records: persists
README.md - Review repository → Review and activity documents: stores reviews
backend/src/main/java/com/shopsphere/repository/ReviewRepository.java - Review and activity documents → MongoDB: stored in
README.md - Commerce records → MySQL: stored in
README.md - Authentication → Email delivery: sends verification mail
backend/src/main/java/com/shopsphere/service/AuthService.java - Admin console → REST controllers: manages commerce
- Payment service → Razorpay: processes payments
README.md - Order service → Cart service: uses cart
backend/src/main/java/com/shopsphere/service/OrderService.java - Admin services → Image storage: uploads images
README.md