# allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026 architecture

> Architecture diagram of the GitHub repository allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026
- Repository: https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026

## Overview

This is a full-stack event-booking app: users browse and filter events, inspect details, book places, receive confirmation, and look up or cancel a booking. The client routes those experiences through API helpers to a NestJS API; event and booking services apply availability and time rules over an in-memory seeded store. The README also documents mock-mode booking lookup and cancellation. Some client API internals and unsampled management screens are not excerpted, so those relationships are shown only where indexed or documented.

Main entry points: [`client/src/App.tsx`](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/App.tsx) (Route dispatch), [`client/src/pages/EventsPage.tsx`](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/pages/EventsPage.tsx) (Event browsing), [`client/src/pages/BookingFormPage.tsx`](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/pages/BookingFormPage.tsx) (Booking form), [`client/src/pages/ManageBookingPage.tsx`](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/pages/ManageBookingPage.tsx) (Booking management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Booking experience"]
  node_routing["Route dispatch<br/>[App.tsx]"]
  node_eventbrowse["Event browsing<br/>[EventsPage.tsx]"]
  node_eventdetail["Event details"]
  node_bookingform["Booking form"]
  node_confirmation["Booking confirmation"]
  node_manage["Booking management"]
  node_searchform["Booking search"]
  node_bookingcard["Booking summary<br/>[BookingCard.tsx]"]
  node_eventcard["Event card<br/>[EventCard.tsx]"]
  node_filters["Event filters<br/>[FiltersBar.tsx]"]
  node_eventclientapi["Event API client<br/>[eventsApi.ts]"]
  node_manageclientapi["Booking API client<br/>[manageAPI.ts]"]
end

subgraph group_api["NestJS API"]
  node_eventscontroller["Event endpoints"]
  node_eventsservice["Event queries<br/>[events.service.ts]"]
  node_bookingscontroller["Booking endpoints"]
  node_bookingsservice["Booking operations"]
  node_apiroot["API module assembly<br/>[app.module.ts]"]
end

subgraph group_domain["Booking rules"]
  node_availability["Availability rules<br/>[availability.ts]"]
  node_time["Event time rules<br/>[time.ts]"]
end

subgraph group_state["Event state"]
  node_store[("In-memory state<br/>[store.service.ts]")]
  node_seed["Seed records<br/>[seed.ts]"]
end

node_visitor(("Event visitor"))
node_api(("NestJS service"))

node_visitor -->|"navigates"| node_routing
node_routing -->|"routes to"| node_eventbrowse
node_routing -->|"routes to"| node_eventdetail
node_routing -->|"routes to"| node_bookingform
node_routing -->|"routes to"| node_confirmation
node_routing -->|"routes to"| node_manage
node_eventbrowse -->|"uses"| node_filters
node_eventbrowse -->|"renders"| node_eventcard
node_eventbrowse -.->|"loads events"| node_eventclientapi
node_eventdetail -.->|"loads event"| node_eventclientapi
node_bookingform -->|"loads event"| node_eventclientapi
node_bookingform -->|"creates booking"| node_manageclientapi
node_bookingform -->|"navigates with booking"| node_confirmation
node_manage -->|"renders"| node_searchform
node_manage -->|"renders"| node_bookingcard
node_manage -.->|"requests booking actions"| node_manageclientapi
node_api -.->|"serves event requests"| node_eventclientapi
node_api -.->|"serves booking requests"| node_manageclientapi
node_apiroot -->|"registers module"| node_eventscontroller
node_apiroot -->|"registers module"| node_bookingscontroller
node_eventscontroller -->|"calls"| node_eventsservice
node_bookingscontroller -->|"calls"| node_bookingsservice
node_eventsservice -->|"reads"| node_store
node_bookingsservice -->|"reads and updates"| node_store
node_eventsservice -->|"computes availability"| node_availability
node_bookingsservice -->|"checks availability"| node_availability
node_eventsservice -->|"checks event time"| node_time
node_bookingsservice -->|"checks event time"| node_time
node_availability -->|"checks start time"| node_time
node_store -->|"initializes from"| node_seed

click node_routing "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/App.tsx"
click node_eventbrowse "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/pages/EventsPage.tsx"
click node_eventdetail "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/pages/EventDetailsPage.tsx"
click node_bookingform "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/pages/BookingFormPage.tsx"
click node_confirmation "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/pages/ConfirmationPage.tsx"
click node_manage "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/pages/ManageBookingPage.tsx"
click node_searchform "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/components/BookingSearchForm.tsx"
click node_bookingcard "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/components/BookingCard.tsx"
click node_eventcard "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/components/EventCard.tsx"
click node_filters "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/components/FiltersBar.tsx"
click node_eventclientapi "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/api/eventsApi.ts"
click node_manageclientapi "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/api/manageAPI.ts"
click node_eventscontroller "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/events/events.controller.ts"
click node_eventsservice "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/events/events.service.ts"
click node_bookingscontroller "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/bookings/booking.controller.ts"
click node_bookingsservice "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/bookings/bookings.service.ts"
click node_availability "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/common/helpers/availability.ts"
click node_time "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/common/helpers/time.ts"
click node_store "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/store/store.service.ts"
click node_seed "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/store/seed.ts"
click node_apiroot "https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/app.module.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_routing,node_eventbrowse,node_eventdetail,node_bookingform,node_confirmation,node_manage,node_searchform,node_bookingcard,node_eventcard,node_filters,node_eventclientapi,node_manageclientapi toneBlue
class node_eventscontroller,node_eventsservice,node_bookingscontroller,node_bookingsservice,node_apiroot toneAmber
class node_availability,node_time toneMint
class node_store,node_seed toneRose
class node_visitor,node_api toneIndigo
```

## Components

### Booking experience

- [Route dispatch](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/App.tsx): `client/src/App.tsx`
- [Event browsing](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/pages/EventsPage.tsx): `client/src/pages/EventsPage.tsx`
- [Event details](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/pages/EventDetailsPage.tsx): `client/src/pages/EventDetailsPage.tsx`
- [Booking form](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/pages/BookingFormPage.tsx): `client/src/pages/BookingFormPage.tsx`
- [Booking confirmation](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/pages/ConfirmationPage.tsx): `client/src/pages/ConfirmationPage.tsx`
- [Booking management](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/pages/ManageBookingPage.tsx): `client/src/pages/ManageBookingPage.tsx`
- [Booking search](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/components/BookingSearchForm.tsx): `client/src/components/BookingSearchForm.tsx`
- [Booking summary](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/components/BookingCard.tsx): `client/src/components/BookingCard.tsx`
- [Event card](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/components/EventCard.tsx): `client/src/components/EventCard.tsx`
- [Event filters](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/components/FiltersBar.tsx): `client/src/components/FiltersBar.tsx`
- [Event API client](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/api/eventsApi.ts): `client/src/api/eventsApi.ts`
- [Booking API client](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/client/src/api/manageAPI.ts): `client/src/api/manageAPI.ts`

### NestJS API

- [Event endpoints](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/events/events.controller.ts): `api/src/events/events.controller.ts`
- [Event queries](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/events/events.service.ts): `api/src/events/events.service.ts`
- [Booking endpoints](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/bookings/booking.controller.ts): `api/src/bookings/booking.controller.ts`
- [Booking operations](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/bookings/bookings.service.ts): `api/src/bookings/bookings.service.ts`
- [API module assembly](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/app.module.ts): `api/src/app.module.ts`

### Booking rules

- [Availability rules](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/common/helpers/availability.ts): `api/src/common/helpers/availability.ts`
- [Event time rules](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/common/helpers/time.ts): `api/src/common/helpers/time.ts`

### Event state

- [In-memory state](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/store/store.service.ts): `api/src/store/store.service.ts`
- [Seed records](https://github.com/allaith3issa/event-booking-system-mini-project-b4f-chorot4-2026/blob/main/api/src/store/seed.ts): `api/src/store/seed.ts`

### Other components

- **Event visitor**
- **NestJS service**

## Connections

- Event visitor → Route dispatch: navigates (evidence: `client/src/App.tsx`)
- Route dispatch → Event browsing: routes to (evidence: `client/src/App.tsx`)
- Route dispatch → Event details: routes to (evidence: `client/src/App.tsx`)
- Route dispatch → Booking form: routes to (evidence: `client/src/App.tsx`)
- Route dispatch → Booking confirmation: routes to (evidence: `client/src/App.tsx`)
- Route dispatch → Booking management: routes to (evidence: `client/src/App.tsx`)
- Event browsing → Event filters: uses (evidence: `client/src/pages/EventsPage.tsx`)
- Event browsing → Event card: renders (evidence: `client/src/pages/EventsPage.tsx`)
- Event browsing → Event API client: loads events
- Event details → Event API client: loads event
- Booking form → Event API client: loads event (evidence: `client/src/pages/BookingFormPage.tsx`)
- Booking form → Booking API client: creates booking (evidence: `client/src/pages/BookingFormPage.tsx`)
- Booking form → Booking confirmation: navigates with booking (evidence: `client/src/pages/BookingFormPage.tsx`)
- Booking management → Booking search: renders (evidence: `client/src/pages/ManageBookingPage.tsx`)
- Booking management → Booking summary: renders (evidence: `client/src/pages/ManageBookingPage.tsx`)
- Booking management → Booking API client: requests booking actions
- NestJS service → Event API client: serves event requests (evidence: `README.md`)
- NestJS service → Booking API client: serves booking requests (evidence: `README.md`)
- API module assembly → Event endpoints: registers module (evidence: `api/src/app.module.ts`)
- API module assembly → Booking endpoints: registers module (evidence: `api/src/app.module.ts`)
- Event endpoints → Event queries: calls (evidence: `api/src/events/events.controller.ts`)
- Booking endpoints → Booking operations: calls (evidence: `api/src/bookings/booking.controller.ts`)
- Event queries → In-memory state: reads (evidence: `api/src/events/events.service.ts`)
- Booking operations → In-memory state: reads and updates (evidence: `api/src/bookings/bookings.service.ts`)
- Event queries → Availability rules: computes availability (evidence: `api/src/events/events.service.ts`)
- Booking operations → Availability rules: checks availability (evidence: `api/src/bookings/bookings.service.ts`)
- Event queries → Event time rules: checks event time (evidence: `api/src/events/events.service.ts`)
- Booking operations → Event time rules: checks event time (evidence: `api/src/bookings/bookings.service.ts`)
- Availability rules → Event time rules: checks start time (evidence: `api/src/common/helpers/availability.ts`)
- In-memory state → Seed records: initializes from (evidence: `api/src/store/store.service.ts`)
