# supra423/cinema-booking-registration-form-mob-prog-act architecture

> Architecture diagram of the GitHub repository supra423/cinema-booking-registration-form-mob-prog-act, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/supra423/cinema-booking-registration-form-mob-prog-act
- Repository: https://github.com/supra423/cinema-booking-registration-form-mob-prog-act

## Overview

This is an Expo Router cinema-booking app. Its customer-facing flow presents movies, opens movie details, supports ticket selection and payment, and includes login, registration, and profile screens. Administrators manage the movie catalogue and screening schedules; cinema and showtime data are modeled separately from movies. The excerpts show the home-to-catalogue data path and several admin-to-storage calls. Other screen-to-screen navigation and unsampled implementations are represented only where the tree supports a distinct capability; their wiring is not assumed.

Main entry points: [`src/services/movieStorage.jsx`](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/services/movieStorage.jsx) (Movie storage), [`src/components/Button.jsx`](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/components/Button.jsx) (Button), [`app/(admin)/index.jsx`](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(admin)/index.jsx) (Admin dashboard), [`app/(tabs)/index.jsx`](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(tabs)/index.jsx) (Home tab)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer experience"]
  node_home["Home tab<br/>[index.jsx]"]
  node_showing["Movie carousel"]
  node_catalogue["Movie catalogue<br/>[movieCatalogue.jsx]"]
  node_movie_detail["Movie details<br/>[ViewMovie.jsx]"]
  node_schedule["Screening schedule<br/>[ScheduleScreen.jsx]"]
  node_ticket_select["Ticket selection"]
  node_payment["Payment<br/>[PaymentScreen.jsx]"]
  node_login["Login<br/>[LoginScreen.jsx]"]
  node_register["Registration<br/>[RegisterScreen.jsx]"]
  node_profile["Customer profile<br/>[profile.jsx]"]
  node_profile_update["Profile update"]
  node_password["Password change"]
end

subgraph group_admin["Cinema administration"]
  node_admin_home["Admin dashboard<br/>[index.jsx]"]
  node_admin_add["Add movie<br/>[add-movie.jsx]"]
  node_admin_movies["Movie management"]
  node_admin_showtimes["Showtime management<br/>[showtimes.jsx]"]
  node_admin_booking["Booking admin<br/>[booking.jsx]"]
  node_admin_profile["Admin profile<br/>[adminProfile.jsx]"]
end

subgraph group_domain["Cinema data"]
  node_movies_store[("Movie storage<br/>[movieStorage.jsx]")]
  node_movie_model["Movie model<br/>[movie.jsx]"]
  node_showtime_store[("Showtime storage")]
  node_cinema_model[("Cinema data<br/>[cinema.jsx]")]
end

subgraph group_shared["Shared UI"]
  node_styles["Style system<br/>[Styles.jsx]"]
  node_button["Button<br/>[Button.jsx]"]
  node_header["Header<br/>[Header.jsx]"]
  node_runtime["Runtime picker<br/>[RuntimeClock.jsx]"]
end

node_visitor(("Customer"))

node_visitor -.->|"opens app"| node_home
node_home -->|"loads movies"| node_movies_store
node_home -->|"fetches and saves"| node_movies_store
node_home -->|"renders"| node_showing
node_showing -->|"uses styles"| node_styles
node_catalogue -->|"loads movies"| node_movies_store
node_movie_detail -->|"loads movies"| node_movies_store
node_ticket_select -->|"loads movies"| node_movies_store
node_schedule -->|"loads movies"| node_movies_store
node_schedule -->|"uses showtimes"| node_showtime_store
node_schedule -->|"uses cinema data"| node_cinema_model
node_ticket_select -.->|"continues to payment"| node_payment
node_login -.->|"returns to movie"| node_movie_detail
node_register -.->|"continues to profile"| node_profile
node_profile -.->|"opens editor"| node_profile_update
node_profile -.->|"opens password change"| node_password
node_admin_home -->|"loads and saves"| node_movies_store
node_admin_home -->|"fetches catalogue"| node_movies_store
node_admin_add -->|"loads and saves"| node_movies_store
node_admin_add -->|"renders picker"| node_runtime
node_admin_showtimes -->|"uses movie storage"| node_movies_store
node_admin_showtimes -->|"uses cinema data"| node_cinema_model
node_admin_showtimes -->|"uses showtime storage"| node_showtime_store
node_admin_movies -->|"uses movie storage"| node_movies_store
node_movies_store -->|"normalizes movies"| node_movie_model
node_button -->|"uses styles"| node_styles
node_header -->|"uses styles"| node_styles
node_admin_home -->|"uses picker"| node_runtime
node_admin_home -->|"uses styles"| node_styles
node_admin_profile -->|"uses button"| node_button
node_profile -->|"uses button"| node_button
node_register -->|"uses button"| node_button
node_profile_update -->|"uses button"| node_button

click node_home "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(tabs)/index.jsx"
click node_showing "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/components/showingContents.jsx"
click node_catalogue "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(tabs)/movieCatalogue.jsx"
click node_movie_detail "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/ViewMovie.jsx"
click node_schedule "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/ScheduleScreen.jsx"
click node_ticket_select "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/TicketSelectionScreen.jsx"
click node_payment "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/PaymentScreen.jsx"
click node_login "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/LoginScreen.jsx"
click node_register "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/RegisterScreen.jsx"
click node_profile "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(tabs)/profile.jsx"
click node_profile_update "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/UpdateProfileScreen.jsx"
click node_password "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/ChangePasswordScreen.jsx"
click node_admin_home "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(admin)/index.jsx"
click node_admin_add "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(admin)/add-movie.jsx"
click node_admin_movies "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/AdminMovieManagementScreen.jsx"
click node_admin_showtimes "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(admin)/showtimes.jsx"
click node_admin_booking "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(admin)/booking.jsx"
click node_admin_profile "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(admin)/adminProfile.jsx"
click node_movies_store "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/services/movieStorage.jsx"
click node_movie_model "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/models/movie.jsx"
click node_showtime_store "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/services/showtimeStorage.jsx"
click node_cinema_model "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/models/cinema.jsx"
click node_styles "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/Styles.jsx"
click node_button "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/components/Button.jsx"
click node_header "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/components/Header.jsx"
click node_runtime "https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/components/RuntimeClock.jsx"

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_home,node_showing,node_catalogue,node_movie_detail,node_schedule,node_ticket_select,node_payment,node_login,node_register,node_profile,node_profile_update,node_password toneBlue
class node_admin_home,node_admin_add,node_admin_movies,node_admin_showtimes,node_admin_booking,node_admin_profile toneAmber
class node_movies_store,node_movie_model,node_showtime_store,node_cinema_model toneMint
class node_styles,node_button,node_header,node_runtime toneRose
class node_visitor toneIndigo
```

## Components

### Customer experience

- [Home tab](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(tabs)/index.jsx): `app/(tabs)/index.jsx`
- [Movie carousel](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/components/showingContents.jsx): `src/components/showingContents.jsx`
- [Movie catalogue](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(tabs)/movieCatalogue.jsx): `app/(tabs)/movieCatalogue.jsx`
- [Movie details](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/ViewMovie.jsx): `app/ViewMovie.jsx`
- [Screening schedule](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/ScheduleScreen.jsx): `app/ScheduleScreen.jsx`
- [Ticket selection](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/TicketSelectionScreen.jsx): `app/TicketSelectionScreen.jsx`
- [Payment](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/PaymentScreen.jsx): `app/PaymentScreen.jsx`
- [Login](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/LoginScreen.jsx): `app/LoginScreen.jsx`
- [Registration](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/RegisterScreen.jsx): `app/RegisterScreen.jsx`
- [Customer profile](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(tabs)/profile.jsx): `app/(tabs)/profile.jsx`
- [Profile update](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/UpdateProfileScreen.jsx): `app/UpdateProfileScreen.jsx`
- [Password change](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/ChangePasswordScreen.jsx): `app/ChangePasswordScreen.jsx`

### Cinema administration

- [Admin dashboard](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(admin)/index.jsx): `app/(admin)/index.jsx`
- [Add movie](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(admin)/add-movie.jsx): `app/(admin)/add-movie.jsx`
- [Movie management](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/AdminMovieManagementScreen.jsx): `app/AdminMovieManagementScreen.jsx`
- [Showtime management](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(admin)/showtimes.jsx): `app/(admin)/showtimes.jsx`
- [Booking admin](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(admin)/booking.jsx): `app/(admin)/booking.jsx`
- [Admin profile](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/app/(admin)/adminProfile.jsx): `app/(admin)/adminProfile.jsx`

### Cinema data

- [Movie storage](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/services/movieStorage.jsx): `src/services/movieStorage.jsx`
- [Movie model](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/models/movie.jsx): `src/models/movie.jsx`
- [Showtime storage](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/services/showtimeStorage.jsx): `src/services/showtimeStorage.jsx`
- [Cinema data](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/models/cinema.jsx): `src/models/cinema.jsx`

### Shared UI

- [Style system](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/Styles.jsx): `src/Styles.jsx`
- [Button](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/components/Button.jsx): `src/components/Button.jsx`
- [Header](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Runtime picker](https://github.com/supra423/cinema-booking-registration-form-mob-prog-act/blob/main/src/components/RuntimeClock.jsx): `src/components/RuntimeClock.jsx`

### Other components

- **Customer**

## Connections

- Customer → Home tab: opens app
- Home tab → Movie storage: loads movies (evidence: `app/(tabs)/index.jsx`)
- Home tab → Movie storage: fetches and saves (evidence: `app/(tabs)/index.jsx`)
- Home tab → Movie carousel: renders (evidence: `app/(tabs)/index.jsx`)
- Movie carousel → Style system: uses styles (evidence: `src/components/showingContents.jsx`)
- Movie catalogue → Movie storage: loads movies (evidence: `app/(tabs)/movieCatalogue.jsx`)
- Movie details → Movie storage: loads movies (evidence: `app/ViewMovie.jsx`)
- Ticket selection → Movie storage: loads movies (evidence: `app/TicketSelectionScreen.jsx`)
- Screening schedule → Movie storage: loads movies (evidence: `app/ScheduleScreen.jsx`)
- Screening schedule → Showtime storage: uses showtimes (evidence: `app/ScheduleScreen.jsx`)
- Screening schedule → Cinema data: uses cinema data (evidence: `app/ScheduleScreen.jsx`)
- Ticket selection → Payment: continues to payment
- Login → Movie details: returns to movie
- Registration → Customer profile: continues to profile
- Customer profile → Profile update: opens editor
- Customer profile → Password change: opens password change
- Admin dashboard → Movie storage: loads and saves (evidence: `app/(admin)/index.jsx`)
- Admin dashboard → Movie storage: fetches catalogue (evidence: `app/(admin)/index.jsx`)
- Add movie → Movie storage: loads and saves (evidence: `app/(admin)/add-movie.jsx`)
- Add movie → Runtime picker: renders picker (evidence: `app/(admin)/add-movie.jsx`)
- Showtime management → Movie storage: uses movie storage (evidence: `app/(admin)/showtimes.jsx`)
- Showtime management → Cinema data: uses cinema data (evidence: `app/(admin)/showtimes.jsx`)
- Showtime management → Showtime storage: uses showtime storage (evidence: `app/(admin)/showtimes.jsx`)
- Movie management → Movie storage: uses movie storage (evidence: `app/AdminMovieManagementScreen.jsx`)
- Movie storage → Movie model: normalizes movies (evidence: `src/services/movieStorage.jsx`)
- Button → Style system: uses styles (evidence: `src/components/Button.jsx`)
- Header → Style system: uses styles (evidence: `src/components/Header.jsx`)
- Admin dashboard → Runtime picker: uses picker (evidence: `app/(admin)/index.jsx`)
- Admin dashboard → Style system: uses styles (evidence: `app/(admin)/index.jsx`)
- Admin profile → Button: uses button (evidence: `app/(admin)/adminProfile.jsx`)
- Customer profile → Button: uses button (evidence: `app/(tabs)/profile.jsx`)
- Registration → Button: uses button (evidence: `app/RegisterScreen.jsx`)
- Profile update → Button: uses button (evidence: `app/UpdateProfileScreen.jsx`)
