# kweku627/disneyclone architecture

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

- Interactive diagram: https://gitdiagram.com/kweku627/disneyclone
- Repository: https://github.com/kweku627/disneyclone

## Overview

DisneyClone is a partially duplicated streaming-app prototype: React Native screens cover browsing, search, playback, downloads, profiles, and account flows, while a Spring backend exposes basic user registration and login. The principal documented-in-code path is app navigation into screens; the sampled backend path is HTTP user request to controller, service, repository, and persisted user. A second Expo frontend contains token-based authentication and movie services. The README provides no capability detail, and sampled sources do not establish that either frontend connects to the Java backend or that movie data is served remotely.

Main entry points: [`App.tsx`](https://github.com/kweku627/disneyclone/blob/main/App.tsx) (App composition), [`front-end/app/app.tsx`](https://github.com/kweku627/disneyclone/blob/main/front-end/app/app.tsx) (Auth navigation), [`UserController.java`](https://github.com/kweku627/disneyclone/blob/main/UserController.java) (User endpoints), [`UserService.java`](https://github.com/kweku627/disneyclone/blob/main/UserService.java) (User operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_media["Streaming experience"]
  node_root_app["App composition<br/>[App.tsx]"]
  node_movie_browse["Movie browsing<br/>[index.tsx]"]
  node_series["Series browsing<br/>[seriesScreen.tsx]"]
  node_search["Search titles<br/>[search_screen.tsx]"]
  node_watch["Watch titles<br/>[watch.tsx]"]
  node_trailer["Trailer playback<br/>[trailer.tsx]"]
  node_downloads["Downloads<br/>[downloadscreen.tsx]"]
  node_profile["Profile management<br/>[Profile.tsx]"]
  node_subscription["Subscriptions"]
  node_settings["Settings<br/>[settings.tsx]"]
  node_login["Login<br/>[login.tsx]"]
  node_signup["Signup<br/>[signup_screen.tsx]"]
end

subgraph group_modern["Expo frontend"]
  node_modern_nav["Auth navigation<br/>[app.tsx]"]
  node_modern_auth["Session state<br/>[AuthContext.tsx]"]
  node_modern_home["Home screen<br/>[Home.tsx]"]
  node_modern_login["Login screen<br/>[Login.tsx]"]
  node_modern_signup["Signup screen<br/>[Signup.tsx]"]
  node_modern_profile["Profile screen<br/>[Profile.tsx]"]
  node_mobile_auth["Token auth state<br/>[AuthContext.tsx]"]
  node_auth_service["Auth service<br/>[auth.ts]"]
  node_movie_service["Movie service<br/>[movies.ts]"]
  node_http_client["API client<br/>[api.ts]"]
end

subgraph group_legacy["Alternate frontend"]
end

subgraph group_backend["User backend"]
  node_user_controller["User endpoints"]
  node_user_service["User operations<br/>[UserService.java]"]
  node_user_repository["User repository"]
  node_user_entity[("User record<br/>[User.java]")]
  node_login_request["Login request<br/>[LoginRequest.java]"]
end

node_viewer(("Viewer"))
node_backend_actor(("API client"))

node_viewer -->|"opens"| node_root_app
node_root_app -->|"renders"| node_movie_browse
node_root_app -->|"renders"| node_search
node_root_app -->|"renders"| node_downloads
node_root_app -->|"renders"| node_watch
node_root_app -->|"renders"| node_profile
node_root_app -->|"renders"| node_login
node_viewer -->|"opens"| node_modern_nav
node_modern_nav -->|"provides"| node_modern_auth
node_modern_nav -->|"routes to"| node_modern_home
node_modern_nav -->|"routes to"| node_modern_profile
node_modern_nav -->|"routes to"| node_modern_login
node_modern_nav -->|"routes to"| node_modern_signup
node_modern_login -->|"uses"| node_modern_auth
node_modern_signup -->|"uses"| node_modern_auth
node_mobile_auth -->|"calls"| node_auth_service
node_auth_service -->|"sends requests"| node_http_client
node_movie_service -->|"sends requests"| node_http_client
node_backend_actor -.->|"requests"| node_user_controller
node_user_controller -->|"delegates to"| node_user_service
node_user_controller -->|"accepts"| node_login_request
node_user_service -->|"queries and saves"| node_user_repository
node_user_service -->|"creates"| node_user_entity
node_user_repository -->|"stores"| node_user_entity

click node_root_app "https://github.com/kweku627/disneyclone/blob/main/App.tsx"
click node_movie_browse "https://github.com/kweku627/disneyclone/blob/main/index.tsx"
click node_series "https://github.com/kweku627/disneyclone/blob/main/seriesScreen.tsx"
click node_search "https://github.com/kweku627/disneyclone/blob/main/search_screen.tsx"
click node_watch "https://github.com/kweku627/disneyclone/blob/main/watch.tsx"
click node_trailer "https://github.com/kweku627/disneyclone/blob/main/trailer.tsx"
click node_downloads "https://github.com/kweku627/disneyclone/blob/main/downloadscreen.tsx"
click node_profile "https://github.com/kweku627/disneyclone/blob/main/Profile.tsx"
click node_subscription "https://github.com/kweku627/disneyclone/blob/main/subscription_screen.tsx"
click node_settings "https://github.com/kweku627/disneyclone/blob/main/settings.tsx"
click node_login "https://github.com/kweku627/disneyclone/blob/main/login.tsx"
click node_signup "https://github.com/kweku627/disneyclone/blob/main/signup_screen.tsx"
click node_modern_nav "https://github.com/kweku627/disneyclone/blob/main/front-end/app/app.tsx"
click node_modern_auth "https://github.com/kweku627/disneyclone/blob/main/front-end/app/auth/AuthContext.tsx"
click node_modern_home "https://github.com/kweku627/disneyclone/blob/main/front-end/app/screens/Home.tsx"
click node_modern_login "https://github.com/kweku627/disneyclone/blob/main/front-end/app/screens/Login.tsx"
click node_modern_signup "https://github.com/kweku627/disneyclone/blob/main/front-end/app/screens/Signup.tsx"
click node_modern_profile "https://github.com/kweku627/disneyclone/blob/main/front-end/app/screens/Profile.tsx"
click node_mobile_auth "https://github.com/kweku627/disneyclone/blob/main/FRONTEND/context/AuthContext.tsx"
click node_auth_service "https://github.com/kweku627/disneyclone/blob/main/FRONTEND/lib/services/auth.ts"
click node_movie_service "https://github.com/kweku627/disneyclone/blob/main/FRONTEND/lib/services/movies.ts"
click node_http_client "https://github.com/kweku627/disneyclone/blob/main/FRONTEND/lib/api.ts"
click node_user_controller "https://github.com/kweku627/disneyclone/blob/main/UserController.java"
click node_user_service "https://github.com/kweku627/disneyclone/blob/main/UserService.java"
click node_user_repository "https://github.com/kweku627/disneyclone/blob/main/UserRepository.java"
click node_user_entity "https://github.com/kweku627/disneyclone/blob/main/User.java"
click node_login_request "https://github.com/kweku627/disneyclone/blob/main/LoginRequest.java"

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_root_app,node_movie_browse,node_series,node_search,node_watch,node_trailer,node_downloads,node_profile,node_subscription,node_settings,node_login,node_signup,node_viewer,node_backend_actor toneBlue
class node_modern_nav,node_modern_auth,node_modern_home,node_modern_login,node_modern_signup,node_modern_profile,node_mobile_auth,node_auth_service,node_movie_service,node_http_client toneAmber
class node_user_controller,node_user_service,node_user_repository,node_user_entity,node_login_request toneRose
```

## Components

### Streaming experience

- [App composition](https://github.com/kweku627/disneyclone/blob/main/App.tsx): `App.tsx`
- [Movie browsing](https://github.com/kweku627/disneyclone/blob/main/index.tsx): `index.tsx`
- [Series browsing](https://github.com/kweku627/disneyclone/blob/main/seriesScreen.tsx): `seriesScreen.tsx`
- [Search titles](https://github.com/kweku627/disneyclone/blob/main/search_screen.tsx): `search_screen.tsx`
- [Watch titles](https://github.com/kweku627/disneyclone/blob/main/watch.tsx): `watch.tsx`
- [Trailer playback](https://github.com/kweku627/disneyclone/blob/main/trailer.tsx): `trailer.tsx`
- [Downloads](https://github.com/kweku627/disneyclone/blob/main/downloadscreen.tsx): `downloadscreen.tsx`
- [Profile management](https://github.com/kweku627/disneyclone/blob/main/Profile.tsx): `Profile.tsx`
- [Subscriptions](https://github.com/kweku627/disneyclone/blob/main/subscription_screen.tsx): `subscription_screen.tsx`
- [Settings](https://github.com/kweku627/disneyclone/blob/main/settings.tsx): `settings.tsx`
- [Login](https://github.com/kweku627/disneyclone/blob/main/login.tsx): `login.tsx`
- [Signup](https://github.com/kweku627/disneyclone/blob/main/signup_screen.tsx): `signup_screen.tsx`

### Expo frontend

- [Auth navigation](https://github.com/kweku627/disneyclone/blob/main/front-end/app/app.tsx): `front-end/app/app.tsx`
- [Session state](https://github.com/kweku627/disneyclone/blob/main/front-end/app/auth/AuthContext.tsx): `front-end/app/auth/AuthContext.tsx`
- [Home screen](https://github.com/kweku627/disneyclone/blob/main/front-end/app/screens/Home.tsx): `front-end/app/screens/Home.tsx`
- [Login screen](https://github.com/kweku627/disneyclone/blob/main/front-end/app/screens/Login.tsx): `front-end/app/screens/Login.tsx`
- [Signup screen](https://github.com/kweku627/disneyclone/blob/main/front-end/app/screens/Signup.tsx): `front-end/app/screens/Signup.tsx`
- [Profile screen](https://github.com/kweku627/disneyclone/blob/main/front-end/app/screens/Profile.tsx): `front-end/app/screens/Profile.tsx`
- [Token auth state](https://github.com/kweku627/disneyclone/blob/main/FRONTEND/context/AuthContext.tsx): `FRONTEND/context/AuthContext.tsx`
- [Auth service](https://github.com/kweku627/disneyclone/blob/main/FRONTEND/lib/services/auth.ts): `FRONTEND/lib/services/auth.ts`
- [Movie service](https://github.com/kweku627/disneyclone/blob/main/FRONTEND/lib/services/movies.ts): `FRONTEND/lib/services/movies.ts`
- [API client](https://github.com/kweku627/disneyclone/blob/main/FRONTEND/lib/api.ts): `FRONTEND/lib/api.ts`

### User backend

- [User endpoints](https://github.com/kweku627/disneyclone/blob/main/UserController.java): `UserController.java`
- [User operations](https://github.com/kweku627/disneyclone/blob/main/UserService.java): `UserService.java`
- [User repository](https://github.com/kweku627/disneyclone/blob/main/UserRepository.java): `UserRepository.java`
- [User record](https://github.com/kweku627/disneyclone/blob/main/User.java): `User.java`
- [Login request](https://github.com/kweku627/disneyclone/blob/main/LoginRequest.java): `LoginRequest.java`

### Other components

- **Viewer**
- **API client**

## Connections

- Viewer → App composition: opens
- App composition → Movie browsing: renders (evidence: `App.tsx`)
- App composition → Search titles: renders (evidence: `App.tsx`)
- App composition → Downloads: renders (evidence: `App.tsx`)
- App composition → Watch titles: renders (evidence: `App.tsx`)
- App composition → Profile management: renders (evidence: `App.tsx`)
- App composition → Login: renders (evidence: `App.tsx`)
- Viewer → Auth navigation: opens
- Auth navigation → Session state: provides (evidence: `front-end/app/app.tsx`)
- Auth navigation → Home screen: routes to (evidence: `front-end/app/app.tsx`)
- Auth navigation → Profile screen: routes to (evidence: `front-end/app/app.tsx`)
- Auth navigation → Login screen: routes to (evidence: `front-end/app/app.tsx`)
- Auth navigation → Signup screen: routes to (evidence: `front-end/app/app.tsx`)
- Login screen → Session state: uses (evidence: `front-end/app/screens/Login.tsx`)
- Signup screen → Session state: uses (evidence: `front-end/app/screens/Signup.tsx`)
- Token auth state → Auth service: calls (evidence: `FRONTEND/context/AuthContext.tsx`)
- Auth service → API client: sends requests (evidence: `FRONTEND/lib/services/auth.ts`)
- Movie service → API client: sends requests (evidence: `FRONTEND/lib/services/movies.ts`)
- API client → User endpoints: requests
- User endpoints → User operations: delegates to (evidence: `UserController.java`)
- User endpoints → Login request: accepts (evidence: `UserController.java`)
- User operations → User repository: queries and saves (evidence: `UserService.java`)
- User operations → User record: creates (evidence: `UserService.java`)
- User repository → User record: stores (evidence: `UserRepository.java`)
