How glaybyonest/booking-system-reverseflow works
ReserveFlow combines a public event-discovery catalog (including Moscow-only imported events) with an internal seat-booking and mock-payment product. The main customer journey is event discovery, session/seat selection, timed hold, checkout/payment, and booking history; a separate admin path manages hall/session layouts and imported-event promotion/sync. The graph reflects documented capabilities, but source excerpts do not expose most router wiring or all integrations, so uncertain links are omitted.
Main entry points: app.go Backend API · app Next.js app · postgres.go PostgreSQL · route.ts Backend proxy
Components 27
Web experience
- Next.js app
frontend/src/app - Event discovery
frontend/src/features/event-list/event-list.tsx - Events map
frontend/src/features/events-map/events-map-page.tsx - Session listing
frontend/src/features/session-list/session-list.tsx - Seat selection
frontend/src/features/seat-selection/seat-selection.tsx - Checkout
frontend/src/features/booking-checkout/checkout-client.tsx - Booking history
frontend/src/features/booking-history/booking-history.tsx - Layout editor
frontend/src/features/admin-layout/layout-editor.tsx - Authentication UI
frontend/src/features/auth/login-form.tsx - Backend proxy
frontend/src/app/api/backend/[...path]/route.ts
Booking domain
- Session service
backend/internal/modules/sessions/application/service.go - Seat inventory
backend/internal/modules/seats/application/service.go - Booking and holds
backend/internal/modules/bookings/application/service.go - Mock payments
backend/internal/modules/payments/application/service.go - Layout management
backend/internal/modules/integrations/application/layouts.go
Events and sync
- Event service
backend/internal/modules/events/application/service.go - External event sync
backend/internal/modules/integrations/application/service.go - Afisha importer
backend/cmd/seed-afisha/main.go
Platform services
- Backend API
backend/internal/app/app.go - Identity service
backend/internal/modules/auth/application/service.go - Notifications
backend/internal/modules/notifications/application/service.go - Sync worker
backend/cmd/worker/main.go - PostgreSQL
backend/internal/infrastructure/db/postgres.go - Redis cache
backend/internal/infrastructure/redis/client.go
Other components
- Customer
- Administrator
- KudaGo / Timepad
Connections 44
- Customer → Next.js app: browses
- Administrator → Next.js app: manages
- Next.js app → Event discovery: renders
frontend/src/app/events/page.tsx - Next.js app → Events map: renders
- Next.js app → Session listing: renders
- Next.js app → Seat selection: renders
- Next.js app → Checkout: renders
- Next.js app → Booking history: renders
frontend/src/app/bookings/page.tsx - Next.js app → Layout editor: renders
- Next.js app → Authentication UI: renders
frontend/src/app/login/page.tsx - Event discovery → Backend proxy: requests
- Events map → Backend proxy: requests
- Session listing → Backend proxy: requests
- Seat selection → Backend proxy: requests
- Checkout → Backend proxy: requests
- Booking history → Backend proxy: requests
- Authentication UI → Backend proxy: authenticates
- Backend proxy → Backend API: forwards
frontend/src/app/api/backend/[...path]/route.ts - Customer → Backend API: calls API
- Backend API → Identity service: dispatches
- Backend API → Event service: dispatches
- Backend API → Session service: dispatches
- Backend API → Seat inventory: dispatches
- Backend API → Booking and holds: dispatches
- Backend API → Mock payments: dispatches
- Backend API → Notifications: dispatches
- Backend API → External event sync: dispatches
- Backend API → Layout management: dispatches
- Booking and holds → Redis cache: caches holds
backend/internal/modules/bookings/application/service.go - Mock payments → Redis cache: caches replay
backend/internal/modules/payments/application/service.go - Sync worker → External event sync: runs sync
- External event sync → KudaGo / Timepad: imports events
- Administrator → External event sync: requests sync
- Administrator → Event service: promotes events
- Afisha importer → PostgreSQL: imports records
backend/cmd/seed-afisha/main.go - Event service → PostgreSQL: reads/writes
- Session service → PostgreSQL: reads/writes
- Seat inventory → PostgreSQL: reads/writes
- Booking and holds → PostgreSQL: reads/writes
- Mock payments → PostgreSQL: reads/writes
- Identity service → PostgreSQL: reads/writes
- Notifications → PostgreSQL: reads/writes
- External event sync → PostgreSQL: reads/writes
- Layout management → PostgreSQL: reads/writes