How itizzakir/ecommerceapplication works
Velora is a full-stack storefront and administration platform: customers browse and search products, manage carts and wishlists, check out, and track orders; administrators manage catalog, users, and order operations. React routes and shared contexts call REST services, while Spring controllers implement API behavior and repositories persist domain data. The README documents MySQL and the broader feature set; source excerpts substantiate selected frontend wiring and backend calls, but not every controller or integration.
Main entry points: OrderController.java Order and checkout API · AppRouter.jsx Route dispatch · services API services · AuthController.java Authentication API
Components 28
Customer frontend
- App providers
ECommerceApplication Frontend/src/App.jsx - Route dispatch
ECommerceApplication Frontend/src/routes/AppRouter.jsx - Storefront pages
ECommerceApplication Frontend/src/pages - User contexts
ECommerceApplication Frontend/src/context - API services
ECommerceApplication Frontend/src/services - Authentication client
ECommerceApplication Frontend/src/context/AuthContext.jsx
Admin frontend
- Admin pages
ECommerceApplication Frontend/src/pages/admin
REST API
- Authentication API
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/AuthController.java - Cart API
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/CartController.java - Order and checkout API
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/OrderController.java - Product API
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/ProductController.java - Other API controllers
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers
Identity and security
- JWT handling
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/security/jwt/JwtUtils.java - User identity lookup
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/security/services/UserDetailsServiceImpl.java
Domain and persistence
- User entity
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/model/User.java - Product entity
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/model/Product.java - Activity log entity
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/model/ActivityLog.java - Cart item entity
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/model/CartItem.java - Order entities
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/model/Order.java - Order line entity
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/model/OrderItem.java - JPA repositories
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/repository - User repository
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/repository/UserRepository.java - Product repository
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/repository/ProductRepository.java - Activity repository
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/repository/ActivityLogRepository.java - Cart repository
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/repository/CartItemRepository.java
Other components
- Shopper
- Administrator
- MySQL
Connections 28
- Shopper → Route dispatch: browses and acts
- Administrator → Route dispatch: uses storefront
- App providers → Route dispatch: renders
ECommerceApplication Frontend/src/App.jsx - Route dispatch → Storefront pages: routes to
ECommerceApplication Frontend/src/routes/AppRouter.jsx - Route dispatch → Admin pages: routes to
ECommerceApplication Frontend/src/routes/AppRouter.jsx - App providers → User contexts: provides state
ECommerceApplication Frontend/src/App.jsx - Storefront pages → API services: calls API
ECommerceApplication Frontend/src/pages/customer/CustomerDashboard.jsx - Admin pages → API services: calls API
- User contexts → API services: calls API
ECommerceApplication Frontend/src/context/CartContext.jsx - Authentication client → Authentication API: posts credentials
ECommerceApplication Frontend/src/context/AuthContext.jsx - API services → Other API controllers: calls REST API
- API services → Product API: fetches products
- Authentication API → User repository: reads and saves users
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/AuthController.java - Authentication API → JWT handling: generates token
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/AuthController.java - Authentication API → Activity repository: logs registration
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/AuthController.java - User identity lookup → User repository: loads account
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/security/services/UserDetailsServiceImpl.java - User identity lookup → User identity lookup: builds principal
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/security/services/UserDetailsServiceImpl.java - Cart API → User repository: resolves user
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/CartController.java - Cart API → Product repository: loads product
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/CartController.java - Cart API → Cart repository: reads and saves cart
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/CartController.java - Order and checkout API → Cart repository: loads and clears cart
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/OrderController.java - Order and checkout API → User repository: resolves user
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/OrderController.java - Order and checkout API → Activity repository: records order events
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/OrderController.java - Product API → Product repository: queries products
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/ProductController.java - Product API → Activity repository: records activity
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/ProductController.java - JPA repositories → MySQL: persists entities
- Order and checkout API → Order entities: creates order
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/OrderController.java - Order and checkout API → Order line entity: assembles order lines
ECommerceApplication Backend/src/main/java/com/velora/velora_backend/controllers/OrderController.java