How cloudcoffee-project/cloudcoffee works
CloudCoffee is a university-cafeteria online sales platform. A customer uses the web or mobile app through the API Gateway to browse campus cafeterias and products, create a purchase, and pay; staff also administer users, catalog and stock. Order handles purchase review and payment outcomes, while Notification delivers email, push and real-time updates. The README documents these service capabilities and integrations; several cross-service links below are therefore documented rather than verified from sampled callers. Source excerpts were limited, so uncertain links are dashed.
Main entry points: ApiGatewayApplication.java API Gateway · PublicCatalogController.java Catalog API · NotificationEventConsumer.java Event handling · PublicCatalogQueryService.java Catalog queries
Components 26
Client entry
- Web app
web/src/App.tsx - Mobile app
mobile/src/services/httpClient.ts - API Gateway
backend/api-gateway/src/main/java/cl/cloudcoffee/api_gateway/ApiGatewayApplication.java
Identity and access
- Auth and accounts
backend/auth-service/src/main/java/cl/cloudcoffee/auth_service/controller/AuthController.java - User administration
backend/auth-service/src/main/java/cl/cloudcoffee/auth_service/service/AdministracionUsuariosService.java - Account data
backend/auth-service/src/main/java/cl/cloudcoffee/auth_service/repository/UsuarioRepository.java
Catalog and stock
- Catalog API
backend/catalog-service/src/main/java/cl/cloudcoffee/catalog_service/controller/PublicCatalogController.java - Catalog queries
backend/catalog-service/src/main/java/cl/cloudcoffee/catalog_service/service/PublicCatalogQueryService.java - Catalog and stock admin
backend/catalog-service/src/main/java/cl/cloudcoffee/catalog_service/service/CatalogAdministrationService.java - Catalog data
backend/catalog-service/src/main/java/cl/cloudcoffee/catalog_service/repository/ProductRepository.java - Product images
backend/catalog-service/src/main/java/cl/cloudcoffee/catalog_service/images/ProductImageStorage.java
Purchases and payments
- Purchase creation
backend/order-service/src/main/java/cl/cloudcoffee/order_service/creacion/CreacionCompraService.java - Purchase review
backend/order-service/src/main/java/cl/cloudcoffee/order_service/revision/RevisionCompraService.java - Payment outcomes
backend/order-service/src/main/java/cl/cloudcoffee/order_service/service/ResultadoPagoService.java - Purchase and payment data
backend/order-service/src/main/java/cl/cloudcoffee/order_service/model/Compra.java - Payment preferences
backend/payment-service/src/main/java/cl/cloudcoffee/payment_service/preferencias/PreferenciaService.java
Notifications
- Event handling
backend/notification-service/src/main/java/cl/cloudcoffee/notification_service/messaging/NotificationEventConsumer.java - Email delivery
backend/notification-service/src/main/java/cl/cloudcoffee/notification_service/email/EmailService.java - Push delivery
backend/notification-service/src/main/java/cl/cloudcoffee/notification_service/push/NotificationPushService.java - Device tokens
backend/notification-service/src/main/java/cl/cloudcoffee/notification_service/devices/DeviceTokenService.java
Other components
- Customer
- Cafeteria staff
- Payment provider
- RabbitMQ
- Firebase messaging
- SMTP or Mailpit
Connections 31
- Customer → Web app: uses
- Customer → Mobile app: uses
- Cafeteria staff → Web app: administers
- Web app → API Gateway: sends requests
README.md - Mobile app → API Gateway: sends requests
README.md - API Gateway → Auth and accounts: routes to
README.md - API Gateway → Catalog API: routes to
README.md - API Gateway → Purchase creation: routes to
README.md - API Gateway → Payment preferences: routes to
README.md - API Gateway → Event handling: routes to
- Auth and accounts → Account data: reads and writes
- User administration → Account data: reads and writes
backend/auth-service/src/main/java/cl/cloudcoffee/auth_service/service/AdministracionUsuariosService.java - User administration → Catalog API: validates cafeteria
backend/auth-service/src/main/java/cl/cloudcoffee/auth_service/service/AdministracionUsuariosService.java - Catalog API → Catalog queries: delegates queries
- Catalog queries → Catalog data: queries catalog
backend/catalog-service/src/main/java/cl/cloudcoffee/catalog_service/service/PublicCatalogQueryService.java - Catalog and stock admin → Catalog data: updates catalog
backend/catalog-service/src/main/java/cl/cloudcoffee/catalog_service/service/CatalogAdministrationService.java - Purchase creation → Catalog queries: gets offers
- Purchase creation → Purchase and payment data: creates purchase
- Purchase review → Catalog queries: rechecks offers
backend/order-service/src/main/java/cl/cloudcoffee/order_service/revision/RevisionCompraService.java - Purchase review → Purchase and payment data: updates purchase
backend/order-service/src/main/java/cl/cloudcoffee/order_service/revision/RevisionCompraService.java - Payment preferences → Payment provider: creates preference
backend/payment-service/src/main/java/cl/cloudcoffee/payment_service/preferencias/PreferenciaService.java - Payment preferences → Payment outcomes: reports outcome
- Payment outcomes → Purchase and payment data: updates payment
backend/order-service/src/main/java/cl/cloudcoffee/order_service/service/ResultadoPagoService.java - Auth and accounts → RabbitMQ: publishes events
README.md - RabbitMQ → Event handling: delivers events
README.md - Event handling → Email delivery: sends email
- Event handling → Push delivery: queues push
- Push delivery → Device tokens: loads recipients
backend/notification-service/src/main/java/cl/cloudcoffee/notification_service/push/NotificationPushService.java - Push delivery → Firebase messaging: sends push
backend/notification-service/src/main/java/cl/cloudcoffee/notification_service/push/NotificationPushService.java - Email delivery → SMTP or Mailpit: delivers mail
README.md - Catalog API → Product images: serves images