# pranavsai498/cinephile_movieapp architecture

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

- Interactive diagram: https://gitdiagram.com/pranavsai498/cinephile_movieapp
- Repository: https://github.com/pranavsai498/cinephile_movieapp

## Overview

This is a small React movie-app shell. The browser entry point mounts App, which renders a navigation bar with a search input and two independent age selectors. The sampled code shows local selector state only; search has no wired behavior, and no movie-data retrieval or result display is evidenced. Performance reporting is a separate Create React App runtime utility rather than part of the movie workflow.

Main entry points: [`src/index.js`](https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/index.js) (React entry), [`src/components/NavBar/index.jsx`](https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/components/NavBar/index.jsx) (Navigation bar), [`src/App.js`](https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/App.js) (App shell), [`src/components/SelectorComponent/index.jsx`](https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/components/SelectorComponent/index.jsx) (Age selector)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Movie interface"]
  node_app["App shell<br/>[App.js]"]
  node_navbar["Navigation bar<br/>[index.jsx]"]
  node_search["Search input<br/>[index.jsx]"]
  node_selector["Age selector<br/>[index.jsx]"]
end

subgraph group_runtime["App runtime"]
  node_entry["React entry<br/>[index.js]"]
  node_vitals["Performance reporting<br/>[reportWebVitals.js]"]
end

node_visitor(("Visitor"))
node_browser(("Browser DOM"))

node_visitor -->|"opens app"| node_browser
node_entry -->|"mounts React"| node_browser
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_navbar
node_navbar -->|"renders"| node_search
node_navbar -->|"renders twice"| node_selector
node_visitor -->|"changes selection"| node_selector
node_entry -->|"invokes"| node_vitals

click node_entry "https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/index.js"
click node_app "https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/App.js"
click node_navbar "https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/components/NavBar/index.jsx"
click node_search "https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/components/NavBar/index.jsx"
click node_selector "https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/components/SelectorComponent/index.jsx"
click node_vitals "https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/reportWebVitals.js"

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_app,node_navbar,node_search,node_selector,node_browser toneBlue
class node_entry,node_vitals toneAmber
class node_visitor toneIndigo
```

## Components

### Movie interface

- [App shell](https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/App.js): `src/App.js`
- [Navigation bar](https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/components/NavBar/index.jsx): `src/components/NavBar/index.jsx`
- [Search input](https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/components/NavBar/index.jsx): `src/components/NavBar/index.jsx`
- [Age selector](https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/components/SelectorComponent/index.jsx): `src/components/SelectorComponent/index.jsx`

### App runtime

- [React entry](https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/index.js): `src/index.js`
- [Performance reporting](https://github.com/pranavsai498/cinephile_movieapp/blob/main/src/reportWebVitals.js): `src/reportWebVitals.js`

### Other components

- **Visitor**
- **Browser DOM**

## Connections

- Visitor → Browser DOM: opens app (evidence: `README.md`)
- React entry → Browser DOM: mounts React (evidence: `src/index.js`)
- React entry → App shell: renders (evidence: `src/index.js`)
- App shell → Navigation bar: renders (evidence: `src/App.js`)
- Navigation bar → Search input: renders (evidence: `src/components/NavBar/index.jsx`)
- Navigation bar → Age selector: renders twice (evidence: `src/components/NavBar/index.jsx`)
- Visitor → Age selector: changes selection (evidence: `src/components/SelectorComponent/index.jsx`)
- React entry → Performance reporting: invokes (evidence: `src/index.js`)
