# sankeerth6655/movie-booking-system architecture

> Architecture diagram of the GitHub repository sankeerth6655/movie-booking-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-06-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sankeerth6655/movie-booking-system
- Repository: https://github.com/sankeerth6655/movie-booking-system

## Overview

1. **Repository shape**
   - This is a two-part monorepo: a **backend API** in `backend/` and a **React frontend SPA** in `frontend/`.
   - The application domain is a **movie/theatre ticket booking system** with auth, listings, show selection, booking, and booking history.

2. **Backend runtime and entrypoints**
   - The backend is a **TypeScript Node.js service** with `src/server.ts` as the process entrypoint and `src/app.ts` as the app composition layer.
   - `server.ts` likely starts the HTTP listener, while `app.ts` wires middleware and route registration.

3. **Backend layering**
   - The backend is organized into a classic three-layer flow:
     - `routes/` define URL boundaries,
     - `controllers/` handle HTTP input/output,
     - `services/` contain business logic,
     - `models/` define the persisted domain objects.
   - `config/db.ts` is the persistence/config boundary, separating the app from the database connection details.

4. **Backend domain subsystems**
   - The backend is split by business capability rather than by technical layer only:
     - `auth`
     - `movie`
     - `show`
     - `theatre`
     - `ticket`
     - `health`
   - Each subsystem has its own route, controller, and service files, which suggests independently understandable API slices.

5. **Backend request flow**
   - A typical request flows from `src/routes/*.routes.ts` into the matching controller, then into the service layer, and finally into a model/database operation.
   - This separation matters for architecture diagrams because the HTTP API boundary is not the same as the domain logic boundary.

6. **Authentication and access control**
   - Auth is its own backend subsystem with `auth.controller.ts`, `auth.service.ts`, and `auth.routes.ts`.
   - The frontend also has `AuthProtectedRoute`, `ProtectedRoute`, and `RoleProtectedRoute`, indicating both authentication and role-based authorization are enforced at the UI routing layer.
   - That suggests privileged pages such as adding movies or theatres are gated by role.

7. **Frontend runtime and composition**
   - The frontend is a **Vite-based React application** using TypeScript.
   - `main.tsx` bootstraps the app, `App.tsx` is the root composition point, and `index.css` provides global styling.
   - The frontend is a client-side SPA that talks to the backend API over HTTP.

8. **Frontend state and API access**
   - Global state is organized through `src/app/store.ts`, with auth state managed in `features/auth/authSlice.ts`.
   - API integration is feature-based: `authApi.ts`, `moviesApi.ts`, `theatreApi.ts`, and `ticketApi.ts`.
   - This indicates a centralized client state store plus dedicated API access modules per domain.

9. **Frontend UI boundaries**
   - UI code is split between:
     - `components/` for reusable shell and route-guard components,
     - `pages/` for route-level screens.
   - `Navbar.tsx` is part of the shared application shell, while pages like `MovieDetailsPage.tsx` and `BookTicketsPage.tsx` represent workflow screens.

10. **Primary user flows**
   - The main product flows implied by the page names are:
     - authentication (`AuthPage`)
     - browsing theatres (`TheatresPage`)
     - viewing movie details (`MovieDetailsPage`)
     - booking tickets (`BookTicketsPage`)
     - viewing personal bookings (`MyBookingsPage`)
     - admin-style content creation (`AddMoviePage`, `AddTheatrePage`)
   - `HeroSection.tsx` suggests a landing/home experience for discovery before the booking flow.

11. **Data and dependency boundary between frontend and backend**
   - The frontend is the presentation and orchestration layer; the backend is the source of truth for users, movies, theatres, shows, and tickets.
   - All persisted business data appears to live behind the backend API and its model/service layer, not in the client.

12. **Operational setup**
   - The project is designed to be run as two separate dev processes:
     - backend from `backend/`
     - frontend from `frontend/`
   - That separation is important for diagrams: the browser talks to the frontend dev server in development, and the frontend talks onward to the backend API.

Main entry points: [`backend/src/routes/index.ts`](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/index.ts) (routes index), [`frontend/src/App.tsx`](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/App.tsx) (App.tsx), [`backend/src/models`](https://github.com/sankeerth6655/movie-booking-system/tree/main/backend/src/models) (Domain models), [`frontend/src/app/store.ts`](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/app/store.ts) (store.ts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_backend["Backend API"]
  node_backend_server["server.ts<br/>entrypoint<br/>[server.ts]"]
  node_backend_app["app.ts<br/>composition<br/>[app.ts]"]
  node_backend_routes_index["routes index<br/>route registry<br/>[index.ts]"]
  node_backend_auth_routes["Auth routes<br/>API routes<br/>[auth.routes.ts]"]
  node_backend_movie_routes["Movie routes<br/>API routes<br/>[movie.routes.ts]"]
  node_backend_show_routes["Show routes<br/>API routes<br/>[show.routes.ts]"]
  node_backend_theatre_routes["Theatre routes<br/>API routes<br/>[theatre.routes.ts]"]
  node_backend_ticket_routes["Ticket routes<br/>API routes<br/>[ticket.routes.ts]"]
  node_backend_health_routes["Health routes<br/>API routes<br/>[health.routes.ts]"]
  node_backend_auth_controller["Auth controller<br/>[auth.controller.ts]"]
  node_backend_movie_controller["Movie controller"]
  node_backend_show_controller["Show controller<br/>[show.controller.ts]"]
  node_backend_theatre_controller["Theatre controller"]
  node_backend_ticket_controller["Ticket controller"]
  node_backend_auth_service["Auth service<br/>[auth.service.ts]"]
  node_backend_movie_service["Movie service<br/>[movie.service.ts]"]
  node_backend_show_service["Show service<br/>[show.service.ts]"]
  node_backend_theatre_service["Theatre service<br/>[theatre.service.ts]"]
  node_backend_ticket_service["Ticket service<br/>[ticket.service.ts]"]
  node_backend_db[("DB config<br/>persistence config<br/>[db.ts]")]
  node_backend_models["Domain models<br/>persistence models"]
end

subgraph group_frontend["Frontend SPA"]
  node_frontend_main["main.tsx<br/>bootstrap<br/>[main.tsx]"]
  node_frontend_app["App.tsx<br/>composition<br/>[App.tsx]"]
  node_frontend_store["store.ts<br/>state store<br/>[store.ts]"]
  node_frontend_auth_slice["Auth slice<br/>state slice<br/>[authSlice.ts]"]
  node_frontend_auth_api["Auth API<br/>api client<br/>[authApi.ts]"]
  node_frontend_movies_api["Movies API<br/>api client<br/>[moviesApi.ts]"]
  node_frontend_theatre_api["Theatre API<br/>api client<br/>[theatreApi.ts]"]
  node_frontend_ticket_api["Ticket API<br/>api client<br/>[ticketApi.ts]"]
  node_frontend_navbar["Navbar<br/>shared component<br/>[Navbar.tsx]"]
  node_frontend_protected["Protected routes<br/>route guard<br/>[ProtectedRoute.tsx]"]
  node_frontend_auth_protected["Auth guard<br/>route guard"]
  node_frontend_role_protected["Role guard<br/>route guard"]
  node_frontend_auth_page["Auth page<br/>screen<br/>[AuthPage.tsx]"]
end

node_backend_server -->|"starts"| node_backend_app
node_backend_app -->|"mounts"| node_backend_routes_index
node_backend_routes_index -->|"includes"| node_backend_auth_routes
node_backend_routes_index -->|"includes"| node_backend_movie_routes
node_backend_routes_index -->|"includes"| node_backend_show_routes
node_backend_routes_index -->|"includes"| node_backend_theatre_routes
node_backend_routes_index -->|"includes"| node_backend_ticket_routes
node_backend_routes_index -->|"includes"| node_backend_health_routes
node_backend_auth_routes -->|"handles"| node_backend_auth_controller
node_backend_movie_routes -->|"handles"| node_backend_movie_controller
node_backend_show_routes -->|"handles"| node_backend_show_controller
node_backend_theatre_routes -->|"handles"| node_backend_theatre_controller
node_backend_ticket_routes -->|"handles"| node_backend_ticket_controller
node_backend_auth_controller -->|"calls"| node_backend_auth_service
node_backend_movie_controller -->|"calls"| node_backend_movie_service
node_backend_show_controller -->|"calls"| node_backend_show_service
node_backend_theatre_controller -->|"calls"| node_backend_theatre_service
node_backend_ticket_controller -->|"calls"| node_backend_ticket_service
node_backend_auth_service -->|"uses"| node_backend_models
node_backend_movie_service -->|"uses"| node_backend_models
node_backend_show_service -->|"uses"| node_backend_models
node_backend_theatre_service -->|"uses"| node_backend_models
node_backend_ticket_service -->|"uses"| node_backend_models
node_backend_models -->|"persists via"| node_backend_db
node_frontend_main -->|"boots"| node_frontend_app
node_frontend_app -->|"uses"| node_frontend_store
node_frontend_store -->|"includes"| node_frontend_auth_slice
node_frontend_auth_slice -->|"queries"| node_frontend_auth_api
node_frontend_store -->|"includes"| node_frontend_movies_api
node_frontend_store -->|"includes"| node_frontend_theatre_api
node_frontend_store -->|"includes"| node_frontend_ticket_api
node_frontend_app -->|"renders"| node_frontend_navbar
node_frontend_app -->|"wraps"| node_frontend_protected
node_frontend_app -->|"wraps"| node_frontend_auth_protected
node_frontend_app -->|"wraps"| node_frontend_role_protected
node_frontend_app -->|"routes to"| node_frontend_auth_page
node_frontend_auth_api -.->|"calls API"| node_backend_auth_routes
node_frontend_movies_api -.->|"calls API"| node_backend_movie_routes
node_frontend_theatre_api -.->|"calls API"| node_backend_theatre_routes
node_frontend_ticket_api -.->|"calls API"| node_backend_ticket_routes

click node_backend_server "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/server.ts"
click node_backend_app "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/app.ts"
click node_backend_routes_index "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/index.ts"
click node_backend_auth_routes "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/auth.routes.ts"
click node_backend_movie_routes "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/movie.routes.ts"
click node_backend_show_routes "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/show.routes.ts"
click node_backend_theatre_routes "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/theatre.routes.ts"
click node_backend_ticket_routes "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/ticket.routes.ts"
click node_backend_health_routes "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/health.routes.ts"
click node_backend_auth_controller "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/controllers/auth.controller.ts"
click node_backend_movie_controller "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/controllers/movie.controller.ts"
click node_backend_show_controller "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/controllers/show.controller.ts"
click node_backend_theatre_controller "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/controllers/theatre.controller.ts"
click node_backend_ticket_controller "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/controllers/ticket.controller.ts"
click node_backend_auth_service "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/services/auth.service.ts"
click node_backend_movie_service "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/services/movie.service.ts"
click node_backend_show_service "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/services/show.service.ts"
click node_backend_theatre_service "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/services/theatre.service.ts"
click node_backend_ticket_service "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/services/ticket.service.ts"
click node_backend_db "https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/config/db.ts"
click node_backend_models "https://github.com/sankeerth6655/movie-booking-system/tree/main/backend/src/models"
click node_frontend_main "https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/main.tsx"
click node_frontend_app "https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/App.tsx"
click node_frontend_store "https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/app/store.ts"
click node_frontend_auth_slice "https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/features/auth/authSlice.ts"
click node_frontend_auth_api "https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/features/auth/authApi.ts"
click node_frontend_movies_api "https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/features/moviesApi.ts"
click node_frontend_theatre_api "https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/features/theatreApi.ts"
click node_frontend_ticket_api "https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/features/ticketApi.ts"
click node_frontend_navbar "https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/components/Navbar.tsx"
click node_frontend_protected "https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/components/ProtectedRoute.tsx"
click node_frontend_auth_protected "https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/components/AuthProtectedRoute.tsx"
click node_frontend_role_protected "https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/components/RoleProtectedRoute.tsx"
click node_frontend_auth_page "https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/pages/AuthPage.tsx"

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_backend_server,node_backend_app,node_backend_routes_index,node_backend_auth_routes,node_backend_movie_routes,node_backend_show_routes,node_backend_theatre_routes,node_backend_ticket_routes,node_backend_health_routes,node_backend_auth_controller,node_backend_movie_controller,node_backend_show_controller,node_backend_theatre_controller,node_backend_ticket_controller,node_backend_auth_service,node_backend_movie_service,node_backend_show_service,node_backend_theatre_service,node_backend_ticket_service,node_backend_db,node_backend_models toneBlue
class node_frontend_main,node_frontend_app,node_frontend_store,node_frontend_auth_slice,node_frontend_auth_api,node_frontend_movies_api,node_frontend_theatre_api,node_frontend_ticket_api,node_frontend_navbar,node_frontend_protected,node_frontend_auth_protected,node_frontend_role_protected,node_frontend_auth_page toneAmber
```

## Components

### Backend API

TypeScript Node.js service with HTTP routing, business logic, and persistence models.

- [server.ts](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/server.ts): entrypoint · Starts the HTTP process. · `backend/src/server.ts`
- [app.ts](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/app.ts): composition · Wires middleware and registers routes. · `backend/src/app.ts`
- [routes index](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/index.ts): route registry · Collects and mounts API route modules. · `backend/src/routes/index.ts`
- [Auth routes](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/auth.routes.ts): API routes · Authentication endpoints. · `backend/src/routes/auth.routes.ts`
- [Movie routes](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/movie.routes.ts): API routes · Movie-related endpoints. · `backend/src/routes/movie.routes.ts`
- [Show routes](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/show.routes.ts): API routes · Show and scheduling endpoints. · `backend/src/routes/show.routes.ts`
- [Theatre routes](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/theatre.routes.ts): API routes · Theatre endpoints. · `backend/src/routes/theatre.routes.ts`
- [Ticket routes](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/ticket.routes.ts): API routes · Booking and ticket endpoints. · `backend/src/routes/ticket.routes.ts`
- [Health routes](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/routes/health.routes.ts): API routes · Service health endpoint. · `backend/src/routes/health.routes.ts`
- [Auth controller](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/controllers/auth.controller.ts): controller · Handles auth request/response mapping. · `backend/src/controllers/auth.controller.ts`
- [Movie controller](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/controllers/movie.controller.ts): controller · Handles movie HTTP operations. · `backend/src/controllers/movie.controller.ts`
- [Show controller](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/controllers/show.controller.ts): controller · Handles show HTTP operations. · `backend/src/controllers/show.controller.ts`
- [Theatre controller](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/controllers/theatre.controller.ts): controller · Handles theatre HTTP operations. · `backend/src/controllers/theatre.controller.ts`
- [Ticket controller](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/controllers/ticket.controller.ts): controller · Handles booking HTTP operations. · `backend/src/controllers/ticket.controller.ts`
- [Auth service](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/services/auth.service.ts): service · Authentication and authorization logic. · `backend/src/services/auth.service.ts`
- [Movie service](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/services/movie.service.ts): service · Movie domain logic. · `backend/src/services/movie.service.ts`
- [Show service](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/services/show.service.ts): service · Show scheduling logic. · `backend/src/services/show.service.ts`
- [Theatre service](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/services/theatre.service.ts): service · Theatre domain logic. · `backend/src/services/theatre.service.ts`
- [Ticket service](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/services/ticket.service.ts): service · Ticket booking logic. · `backend/src/services/ticket.service.ts`
- [DB config](https://github.com/sankeerth6655/movie-booking-system/blob/main/backend/src/config/db.ts): persistence config · Database connection boundary. · `backend/src/config/db.ts`
- [Domain models](https://github.com/sankeerth6655/movie-booking-system/tree/main/backend/src/models): persistence models · Movie, show, theatre, ticket, and user data models. · `backend/src/models`

### Frontend SPA

Vite + React client with routing, state, and API integrations.

- [main.tsx](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/main.tsx): bootstrap · Bootstraps the React application. · `frontend/src/main.tsx`
- [App.tsx](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/App.tsx): composition · Root UI composition and routing. · `frontend/src/App.tsx`
- [store.ts](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/app/store.ts): state store · Configures global client state. · `frontend/src/app/store.ts`
- [Auth slice](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/features/auth/authSlice.ts): state slice · Manages auth state. · `frontend/src/features/auth/authSlice.ts`
- [Auth API](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/features/auth/authApi.ts): api client · Auth endpoint integration. · `frontend/src/features/auth/authApi.ts`
- [Movies API](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/features/moviesApi.ts): api client · Movie endpoint integration. · `frontend/src/features/moviesApi.ts`
- [Theatre API](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/features/theatreApi.ts): api client · Theatre endpoint integration. · `frontend/src/features/theatreApi.ts`
- [Ticket API](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/features/ticketApi.ts): api client · Booking endpoint integration. · `frontend/src/features/ticketApi.ts`
- [Navbar](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/components/Navbar.tsx): shared component · Application shell navigation. · `frontend/src/components/Navbar.tsx`
- [Protected routes](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/components/ProtectedRoute.tsx): route guard · Blocks unauthenticated access. · `frontend/src/components/ProtectedRoute.tsx`
- [Auth guard](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/components/AuthProtectedRoute.tsx): route guard · Restricts auth-only flows. · `frontend/src/components/AuthProtectedRoute.tsx`
- [Role guard](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/components/RoleProtectedRoute.tsx): route guard · Restricts role-based admin pages. · `frontend/src/components/RoleProtectedRoute.tsx`
- [Auth page](https://github.com/sankeerth6655/movie-booking-system/blob/main/frontend/src/pages/AuthPage.tsx): screen · Login and registration flow. · `frontend/src/pages/AuthPage.tsx`

## Connections

- server.ts → app.ts: starts · Process entrypoint boots the app composition.
- app.ts → routes index: mounts · App registers API route collection.
- routes index → Auth routes: includes · Route registry includes auth routes.
- routes index → Movie routes: includes · Route registry includes movie routes.
- routes index → Show routes: includes · Route registry includes show routes.
- routes index → Theatre routes: includes · Route registry includes theatre routes.
- routes index → Ticket routes: includes · Route registry includes ticket routes.
- routes index → Health routes: includes · Route registry includes health routes.
- Auth routes → Auth controller: handles · Auth HTTP boundary delegates to controller.
- Movie routes → Movie controller: handles · Movie HTTP boundary delegates to controller.
- Show routes → Show controller: handles · Show HTTP boundary delegates to controller.
- Theatre routes → Theatre controller: handles · Theatre HTTP boundary delegates to controller.
- Ticket routes → Ticket controller: handles · Ticket HTTP boundary delegates to controller.
- Auth controller → Auth service: calls · Controller delegates business logic.
- Movie controller → Movie service: calls · Controller delegates business logic.
- Show controller → Show service: calls · Controller delegates business logic.
- Theatre controller → Theatre service: calls · Controller delegates business logic.
- Ticket controller → Ticket service: calls · Controller delegates business logic.
- Auth service → Domain models: uses · Auth logic reads/writes persisted user data.
- Movie service → Domain models: uses · Movie logic uses domain models.
- Show service → Domain models: uses · Show logic uses domain models.
- Theatre service → Domain models: uses · Theatre logic uses domain models.
- Ticket service → Domain models: uses · Ticket logic uses domain models.
- Domain models → DB config: persists via · Domain models sit behind the DB boundary.
- main.tsx → App.tsx: boots · Client entry renders root app.
- App.tsx → store.ts: uses · Root app connects to global state.
- store.ts → Auth slice: includes · Store includes auth state slice.
- Auth slice → Auth API: queries · Auth state is backed by auth API calls.
- store.ts → Movies API: includes · Store-backed feature integration for movies.
- store.ts → Theatre API: includes · Store-backed feature integration for theatres.
- store.ts → Ticket API: includes · Store-backed feature integration for tickets.
- App.tsx → Navbar: renders · App shell includes shared navigation.
- App.tsx → Protected routes: wraps · App uses route protection.
- App.tsx → Auth guard: wraps · Auth flow protection is applied at routing.
- App.tsx → Role guard: wraps · Admin pages are role-gated.
- App.tsx → Auth page: routes to · Root app exposes auth screen.
- Auth API → Auth routes: calls API · Client auth module talks to backend auth routes.
- Movies API → Movie routes: calls API · Client movie module talks to backend movie routes.
- Theatre API → Theatre routes: calls API · Client theatre module talks to backend theatre routes.
- Ticket API → Ticket routes: calls API · Client ticket module talks to backend ticket routes.
