How lailah-plat/lailah_cs2 works
This is a venue and event-services marketplace with customer discovery, booking, provider operations, subscriptions, and platform administration. The principal workflow runs from the web application into booking APIs and domain logic, with financial capture and settlement as a distinct stage. The tree and source index also show substantial provider, marketing, support, and governance capabilities. Relationships are limited to imports and calls visible in the supplied excerpts or source index; unsampled subsystem wiring is not assumed.
Main entry points: booking.controller.ts Booking controller · server.ts HTTP server · App.tsx Application shell · Database.ts Database models
Components 25
Web experience
- Web app entry
src/main.tsx - Application shell
src/App.tsx - Application state
src/hooks/useAppState.ts - Venue marketplace
src/components/ClientHallsView.tsx - Booking management
src/components/BookingsManagement.tsx - Admin dashboard
src/components/admin/AdminDashboard.tsx - Provider subscriptions
src/components/ProviderSubscriptionTabbed.tsx - Subscription page
src/pages/SubscriptionPage.tsx - Marketing tools
src/components/MarketingComponents.tsx
Booking domain
- Booking controller
src/modules/booking/booking.controller.ts - Booking repository
src/modules/booking/booking.repository.ts - Booking use cases
src/modules/booking/usecases - Booking lifecycle
src/services/lifecycle/BookingStateMachine.ts
Payments and finance
- Payments engine
src/services/payment/UnifiedPaymentsEngine.ts - Financial engine
src/services/finance/FinancialEngine.ts - Finance API
src/modules/finance/finance.controller.ts
Platform services
- Subscription API
src/modules/subscription/subscription.controller.ts - Security administration
src/modules/security/security.controller.ts - HTTP server
server.ts
Persistence and models
- Booking models
src/models/BookingModels.ts - User models
src/models/UserModels.ts - Subscription models
src/models/SubscriptionModels.ts - Database models
src/models/Database.ts - Mock marketplace data
src/data/mockData.ts
Other components
- Customer or staff
Connections 20
- Customer or staff → Web app entry: uses
- Web app entry → Application shell: renders
src/main.tsx - Application shell → Application state: loads state
src/App.tsx - Application shell → Admin dashboard: renders
src/App.tsx - Application shell → Provider subscriptions: renders
src/App.tsx - Web app entry → Subscription page: routes to
src/main.tsx - HTTP server → Booking controller: mounts routes
server.ts - HTTP server → Finance API: mounts routes
server.ts - HTTP server → Subscription API: mounts routes
server.ts - HTTP server → Security administration: mounts routes
server.ts - Booking controller → Booking repository: uses
src/modules/booking/booking.controller.ts - Booking controller → Booking use cases: invokes
src/modules/booking/booking.controller.ts - Booking controller → Booking lifecycle: uses
src/modules/booking/booking.controller.ts - Booking controller → Booking models: uses
src/modules/booking/booking.controller.ts - Booking controller → User models: uses
src/modules/booking/booking.controller.ts - Database models → Booking models: imports
src/models/Database.ts - Database models → User models: imports
src/models/Database.ts - Database models → Subscription models: references
src/models/Database.ts - Payments engine → Financial engine: uses
src/services/payment/UnifiedPaymentsEngine.ts - Financial engine → Database models: writes ledger
src/services/finance/FinancialEngine.ts