How vietnguyen203/intern works
Food Order System is a restaurant-management product with React web and native Android clients backed by Spring Boot microservices. The main workflow is staff or customer interaction through a client and gateway, with ordering supported by catalog, table, and payment capabilities; payment completion can trigger loyalty points. Other documented service areas include user accounts and notifications. The graph preserves those major branches, but source excerpts are partial: only evidenced client, service, and event relationships are connected, so undocumented gateway routing and several runtime links are left out.
Main entry points: OrderService.java Orders · PaymentService.java Payments · MainActivity.kt Android app · ApiService.kt Mobile API client
Components 16
Client apps
- Admin web app
FE/web/src/App.jsx - Android app
FE/mobile/app/src/main/java/com/food/order/MainActivity.kt - Mobile API client
FE/mobile/app/src/main/java/com/food/order/data/ApiService.kt - Catalog API client
FE/mobile/app/src/main/java/com/food/order/data/CatalogApiService.kt
API entry
- API gateway
BE/gateway-service/src/main/java/com/vietnl/gatewayservice/GatewayServiceApplication.java
Restaurant operations
- Orders
BE/order-service/src/main/java/com/vietnl/orderservice/application/usecases/OrderService.java - Menu and inventory
BE/catalog-service/src/main/java/com/vietnl/catalogservice/application/usecases/InventoryService.java - Tables and reservations
BE/table-service/src/main/java/com/vietnl/tableservice/application/usecases/TableReservationService.java - Revenue reports
BE/order-service/src/main/java/com/vietnl/orderservice/application/reports/ReportEngine.java
Accounts and rewards
- User accounts
BE/users-service/src/main/java/com/vietnl/usersservice/application/usecases/UserService.java - Customer accounts
BE/loyalty-service/src/main/java/com/vietnl/loyaltyservice/application/usecases/CustomerService.java - Points and rewards
BE/loyalty-service/src/main/java/com/vietnl/loyaltyservice/application/usecases/LoyaltyService.java
Payments and messaging
- Payments
BE/payment-service/src/main/java/com/vietnl/paymentservice/application/usecases/PaymentService.java - Kafka events
- Push notifications
BE/notification-service/src/main/java/com/vietnl/notificationservice/application/usecases/FcmService.java
Other components
- Staff and customers
Connections 12
- Staff and customers → Admin web app: uses
- Staff and customers → Android app: uses
- Android app → Mobile API client: requests
- Mobile API client → API gateway: calls gateway
- Catalog API client → API gateway: calls gateway
- Orders → Menu and inventory: fetches menu
BE/order-service/src/main/java/com/vietnl/orderservice/application/usecases/OrderService.java - Orders → Tables and reservations: fetches table
BE/order-service/src/main/java/com/vietnl/orderservice/application/usecases/OrderService.java - Orders → Push notifications: notifies
BE/order-service/src/main/java/com/vietnl/orderservice/application/usecases/OrderService.java - Payments → Orders: reads order
BE/payment-service/src/main/java/com/vietnl/paymentservice/application/usecases/PaymentService.java - Payments → Kafka events: publishes event
BE/payment-service/src/main/java/com/vietnl/paymentservice/application/usecases/PaymentService.java - Kafka events → Points and rewards: delivers payment
BE/loyalty-service/src/main/java/com/vietnl/loyaltyservice/application/usecases/LoyaltyService.java - User accounts → Staff and customers: authenticates