How tejachar121/wiprocapstoneproject works
SmartPizza is a pizza-ordering application with a React client and Spring microservices for authentication, orders, delivery, and administration. The customer journey spans account access, menu/cart/checkout/payment, and delivery tracking; separate admin and delivery-agent workflows manage orders, analytics, and delivery status. Sampled source confirms authentication and delivery-service calls, plus admin aggregation across services. The order-service and most frontend API wiring are represented from the tree only, so uncertain connections are omitted.
Main entry points: App.js Application routes · DeliveryService.java Delivery workflow · AdminService.java Admin aggregation and analytics · AuthController.java Authentication API
Components 21
React client
- Application routes
SmartPizzaFrontend/smartpizza/src/App.js - Customer pages
SmartPizzaFrontend/smartpizza/src/pages/CustomerHome.jsx - Cart and checkout
SmartPizzaFrontend/smartpizza/src/pages/Checkout.jsx - Payment page
SmartPizzaFrontend/smartpizza/src/pages/Payment.jsx - Delivery tracking
SmartPizzaFrontend/smartpizza/src/pages/Tracking.jsx - Admin dashboard
SmartPizzaFrontend/smartpizza/src/pages/AdminDashboard.jsx - Agent dashboard
SmartPizzaFrontend/smartpizza/src/pages/DeliveryDashboard.jsx
Identity and access
- Authentication API
SmartPizzaBackend/auth-service/src/main/java/com/wipro/auth_service/controller/AuthController.java - Registration service
SmartPizzaBackend/auth-service/src/main/java/com/wipro/auth_service/service/AuthService.java - User repository
SmartPizzaBackend/auth-service/src/main/java/com/wipro/auth_service/repository/UserRepo.java - Token service
SmartPizzaBackend/auth-service/src/main/java/com/wipro/auth_service/service/JwtService.java - JWT gateway filter
SmartPizzaBackend/api-gateway/src/main/java/com/wipro/api_gateway/JwtFilter.java
Menu and orders
- Menu, cart, orders, payments
SmartPizzaBackend/order_service/src/main/java/com/wipro/order_service
Delivery operations
- Delivery API
SmartPizzaBackend/delivery-service/src/main/java/com/wipro/delivery_service/controller/DeliveryController.java - Delivery workflow
SmartPizzaBackend/delivery-service/src/main/java/com/wipro/delivery_service/service/DeliveryService.java - Delivery records
SmartPizzaBackend/delivery-service/src/main/java/com/wipro/delivery_service/repository/DeliveryRepo.java - Agent records
SmartPizzaBackend/delivery-service/src/main/java/com/wipro/delivery_service/repository/DeliveryAgentRepo.java
Administration
- Admin API
SmartPizzaBackend/admin-service/src/main/java/com/wipro/admin_service/controller/AdminController.java - Admin aggregation and analytics
SmartPizzaBackend/admin-service/src/main/java/com/wipro/admin_service/service/AdminService.java
Other components
- Customer
- Admin or agent
Connections 20
- Customer → Application routes: uses
- Admin or agent → Application routes: uses
- Application routes → Customer pages: routes
- Application routes → Cart and checkout: routes
- Application routes → Payment page: routes
- Application routes → Delivery tracking: routes
- Application routes → Admin dashboard: routes
- Application routes → Agent dashboard: routes
- Authentication API → Registration service: registers
- Authentication API → User repository: loads user
- Authentication API → Token service: creates token
- Registration service → User repository: checks and saves
- Delivery API → Delivery workflow: dispatches
- Delivery workflow → Delivery records: reads and writes
- Delivery workflow → Agent records: loads agent
- Delivery workflow → Menu, cart, orders, payments: fetches order
- Admin API → Admin aggregation and analytics: dispatches
- Admin aggregation and analytics → Menu, cart, orders, payments: fetches orders
- Admin aggregation and analytics → Authentication API: fetches users
- Admin aggregation and analytics → Delivery API: fetches deliveries