How tigrannnn/event-space works
Event Space is a multilingual tour-booking platform: customers discover events, book dates, pay or manage bookings, and leave reviews; operators publish inventory and manage bookings, money, and customer activity. The web app is the customer and operator interface, the NestJS API owns domain operations, and shared schemas provide contracts. The README documents broad product flows; source excerpts and the index support selected API call edges. Many web-to-API routes and unsampled subsystems are not shown, so those links are omitted rather than inferred.
Main entry points: prisma.service.ts Database access · booking.controller.ts Booking operations · booking-query.service.ts Booking queries · review.service.ts Review management
Components 22
Customer experience
- Catalog and event pages
apps/web/src/app/[locale]/(home)/page.tsx - Search experience
apps/web/src/features/search/hooks/useSearchBox.ts - Booking pages
apps/web/src/app/[locale]/bookings/BookingsPageContent.tsx - Review experience
apps/web/src/features/reviews/hooks/useReviews.ts
Operator console
- Admin console
apps/web/src/app/[locale]/admin/dashboard/page.tsx
API domain services
- Event catalog and publishing
apps/api/src/modules/event/event.service.ts - Search service
apps/api/src/modules/search/search.service.ts - Booking operations
apps/api/src/modules/booking/booking.controller.ts - Booking queries
apps/api/src/modules/booking/use-cases/booking-query.service.ts - Review management
apps/api/src/modules/review/review.service.ts - Review endpoints
apps/api/src/modules/review/review.controller.ts - Admin endpoints
apps/api/src/modules/admin/admin.controller.ts - Admin bookings
apps/api/src/modules/admin/bookings/admin-bookings.service.ts - Dashboard analytics
apps/api/src/modules/admin/dashboard/dashboard-revenue.service.ts - Authentication
apps/api/src/modules/auth/auth.service.ts
Platform infrastructure
- Stripe payments
apps/api/src/infrastructure/stripe/stripe.service.ts - Database access
apps/api/src/infrastructure/prisma/prisma.service.ts - Email delivery
apps/api/src/infrastructure/mail/mail.service.ts
Shared contracts
- Shared schemas
packages/shared/src/schemas/review.schema.ts
Other components
- Customer
- Operator
- PostgreSQL
Connections 24
- Customer → Catalog and event pages: browses
README.md - Customer → Booking pages: books and manages
README.md - Customer → Review experience: submits reviews
README.md - Operator → Admin console: manages platform
README.md - Search experience → Search service: requests search
- Catalog and event pages → Event catalog and publishing: loads events
- Booking pages → Booking operations: manages bookings
- Review experience → Review endpoints: sends review requests
- Event catalog and publishing → Database access: reads and writes
- Search service → Database access: queries events
- Booking operations → Booking queries: delegates queries
apps/api/src/modules/booking/booking.controller.ts - Booking queries → Database access: reads bookings
apps/api/src/modules/booking/use-cases/booking-query.service.ts - Booking queries → Shared schemas: uses contracts
apps/api/src/modules/booking/use-cases/booking-query.service.ts - Review endpoints → Review management: routes review actions
apps/api/src/modules/review/review.controller.ts - Review management → Database access: reads and updates
apps/api/src/modules/review/review.service.ts - Review management → Shared schemas: uses review rules
apps/api/src/modules/review/review.service.ts - Admin endpoints → Admin bookings: routes booking admin
apps/api/src/modules/admin/admin.controller.ts - Admin endpoints → Dashboard analytics: routes dashboard queries
apps/api/src/modules/admin/admin.controller.ts - Admin bookings → Database access: queries bookings
- Dashboard analytics → Database access: aggregates activity
- Authentication → Database access: persists accounts
- Booking operations → Stripe payments: processes payments
- Booking operations → Email delivery: sends confirmations
- Database access → PostgreSQL: stores data