How phuoc523/reportdevelopingoopsoftware works
ScentStation is an IoT smart-perfume-kiosk platform composed of three React applications, an API gateway, and seven Spring services. The customer path runs from kiosk browsing and checkout through orders and simulated QR payment, with machine dispensing as a documented capability; administrators manage identity, catalog, machines, operations, reporting, and notifications. The README documents service boundaries, Kafka use, and optional Firebase delivery. Some backend handlers and cross-service calls were not sampled, so uncertain links are omitted or marked dashed.
Main entry points: ApiGatewayApplication.java API gateway · MachineService.java Machines and dispensing · OrderService.java Orders and payments · TransactionQueryService.java Transactions and reports
Components 22
Web applications
- Kiosk application
frontend/kiosk-web/src/App.tsx - Kiosk API client
frontend/kiosk-web/src/services/api.ts - Admin application
frontend/admin-web/src/App.tsx - Admin API client
frontend/admin-web/src/api/client.ts - Mock payment page
frontend/mock-payment-web/src/App.tsx
Kiosk commerce
- Products and pricing
services/catalog-service/src/main/java/com/scentstation/catalog/service/ProductService.java - Orders and payments
services/order-service/src/main/java/com/scentstation/order/service/OrderService.java
Platform services
- API gateway
services/api-gateway/src/main/java/com/scentstation/gateway/ApiGatewayApplication.java - Identity and tenants
services/identity-service/src/main/java/com/scentstation/identity/service/AuthService.java
Machine operations
- Machines and dispensing
services/machine-service/src/main/java/com/scentstation/service/MachineService.java - Machine slots
services/machine-service/src/main/java/com/scentstation/service/SlotService.java - Inventory workflows
services/operation-service/src/main/java/com/scentstation/operation - Maintenance tickets
services/operation-service/src/main/java/com/scentstation/operation/maintenance/service/MaintenanceTicketService.java
Reporting and alerts
- Transactions and reports
services/reporting-service/src/main/java/com/scentstation/reporting/service/TransactionQueryService.java - Notification inbox
services/notification-service/src/main/java/com/scentstation/notification/service/NotificationService.java - Firebase delivery
services/notification-service/src/main/java/com/scentstation/notification/firebase/FirebaseNotificationDeliveryService.java
Other components
- Kiosk customer
- Admin operator
- Kafka
- Redis
- Service databases
- Apache NiFi
Connections 29
- Kiosk customer → Kiosk application: browses and checks out
README.md - Kiosk application → Kiosk API client: uses API client
frontend/kiosk-web/src/App.tsx - Kiosk API client → API gateway: calls gateway
README.md - Admin operator → Admin application: manages platform
README.md - Admin application → Admin API client: uses API client
frontend/admin-web/src/App.tsx - Admin API client → API gateway: calls gateway
README.md - API gateway → Identity and tenants: routes requests
- API gateway → Products and pricing: routes requests
- API gateway → Orders and payments: routes requests
- API gateway → Machines and dispensing: routes requests
- API gateway → Inventory workflows: routes requests
- API gateway → Transactions and reports: routes requests
- API gateway → Notification inbox: routes requests
- Orders and payments → Mock payment page: serves QR payment flow
- Orders and payments → Machines and dispensing: requests dispensing
- Machines and dispensing → Machine slots: manages slots
services/machine-service/src/main/java/com/scentstation/service/SlotService.java - Machines and dispensing → Inventory workflows: emits consumption events
README.md - Orders and payments → Transactions and reports: publishes payment events
README.md - Machines and dispensing → Notification inbox: publishes machine alerts
README.md - Notification inbox → Firebase delivery: delivers notifications
README.md - Identity and tenants → Service databases: persists identity data
README.md - Products and pricing → Service databases: persists catalog data
README.md - Orders and payments → Service databases: persists order data
README.md - Machines and dispensing → Service databases: persists machine data
README.md - Inventory workflows → Service databases: persists operations data
README.md - Transactions and reports → Service databases: persists reporting data
README.md - Notification inbox → Service databases: persists notification data
README.md - API gateway → Redis: uses rate limiting
README.md - Transactions and reports → Apache NiFi: feeds ETL workflow
README.md