How onlyup2219/timecafe works
TimeCafe is a microservice platform for operating time-cafes. Visitors and staff use the React app through a YARP gateway; the main journey covers authentication, profile setup, venue visits, visit billing, and optional online payment. The services also expose profile-photo moderation, venue catalog and promotion management, and administration/RBAC. The README documents the cross-service event flow and major integrations; sampled source confirms Auth startup wiring and exception auditing, but most service internals were not sampled, so their internal call relationships are omitted.
Main entry points: Program.cs YARP gateway · Endpoints Auth and RBAC · UserProfile.TimeCafe.API User profiles · CQRS Balances and transactions
Components 23
Client experience
- React web app
WebApp/timecafe.react.ui/src/App.tsx - YARP gateway
Services/YarpProxy/Program.cs
Identity and profiles
- Auth and RBAC
Services/Auth/Auth.TimeCafe.API/Endpoints - Auth database
Services/Auth/Auth.TimeCafe.Infrastructure/Data/ApplicationDbContext.cs - Email and SMS
Services/Auth/Auth.TimeCafe.Infrastructure/Services - User profiles
Services/UserProfile/UserProfile.TimeCafe.API - Profile database
Services/UserProfile/UserProfile.TimeCafe.Infrastructure - Photo storage
Services/UserProfile/UserProfile.TimeCafe.Infrastructure/Services/S3ProfilePhotoStorage.cs - Photo moderation
Services/UserProfile/UserProfile.TimeCafe.Infrastructure/Services/SightenginePhotoModerationService.cs
Venue operations
- Tariffs, themes, promotions
Services/Venue/Venue.TimeCafe.Application/CQRS - Visit management
Services/Venue/Venue.TimeCafe.Application/CQRS/Visits - Venue database
Services/Venue/Venue.TimeCafe.Infrastructure
Billing and audit
- Balances and transactions
Services/Billing/Billing.TimeCafe.Application/CQRS - Invoices and payments
Services/Billing/Billing.TimeCafe.Application/CQRS/Payments - Billing database
Services/Billing/Billing.TimeCafe.Infrastructure/Data/ApplicationDbContext.cs - Audit log service
Services/Audit/Audit.TimeCafe.API/Program.cs - Audit database
Services/Audit/Audit.TimeCafe.Infrastructure/Data/ApplicationDbContext.cs
Shared infrastructure
- RabbitMQ
- Redis cache
Other components
- Visitor / staff
- S3 storage
- Sightengine
- Stripe
Connections 29
- Visitor / staff → React web app: uses
- React web app → YARP gateway: API calls
- YARP gateway → Auth and RBAC: routes
- YARP gateway → User profiles: routes
- YARP gateway → Tariffs, themes, promotions: routes
- YARP gateway → Visit management: routes
- YARP gateway → Balances and transactions: routes
- YARP gateway → Invoices and payments: routes
- Auth and RBAC → Auth database: reads / writes
- Auth and RBAC → Email and SMS: sends notifications
- Auth and RBAC → RabbitMQ: publishes registration
- RabbitMQ → User profiles: delivers registration
- User profiles → Profile database: reads / writes
- User profiles → Photo storage: stores photos
- Photo storage → S3 storage: uploads
- User profiles → Photo moderation: moderates photos
- Photo moderation → Sightengine: checks photos
Services/UserProfile/UserProfile.TimeCafe.Infrastructure/Services/SightenginePhotoModerationService.cs - Tariffs, themes, promotions → Venue database: reads / writes
- Visit management → Venue database: reads / writes
- Visit management → RabbitMQ: publishes visit events
- RabbitMQ → Balances and transactions: delivers visit events
- Balances and transactions → Billing database: reads / writes
- Invoices and payments → Stripe: creates checkout
- Balances and transactions → Redis cache: caches reads
- Auth and RBAC → Redis cache: caches permissions
- User profiles → Redis cache: caches data
- Visit management → Balances and transactions: requests billing
- Audit log service → Audit database: stores logs
- Auth and RBAC → Audit log service: publishes audit events