# 1sourav1/netflix_cloneee architecture

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

- Interactive diagram: https://gitdiagram.com/1sourav1/netflix_cloneee
- Repository: https://github.com/1sourav1/netflix_cloneee

## Overview

#### Purpose and Runtime
This is a Create React App single-page frontend, structured as a streaming-style UI with authentication, profile, banner, and content-row views. It runs in the browser through the CRA development/build pipeline; the HTML mount document is `public/index.html`.

#### Application Entry and Composition
`src/index.js` mounts the React application and is the client entry point. `src/App.js` is the top-level composition boundary, with global styling in `src/App.css`. Screen-level behavior is organized into reusable UI components rather than a separate backend or server-rendering layer.

#### Authentication Boundary
Authentication screens are separated under `src/auth/LoginScreen.jsx` and `src/auth/SignupScreen.jsx`. Firebase integration is centralized in `src/config/firebase.js`, making Firebase the external identity/service boundary rather than embedding provider setup throughout components.

#### User State Management
Authenticated user state is modeled in Redux through `src/redux/slice/userSlice.js`, with store assembly in `src/redux/store/store.js`. UI components should consume or update user state through this shared store, isolating session-related state transitions from presentational screens.

#### Main UI Stages
The primary content experience is composed from:
- Navigation and account access: `src/components/Navbar.jsx`
- Landing/content orchestration: `src/components/HomeScreen.jsx`
- Featured content: `src/components/Banner.jsx`
- Repeatable media/content collections: `src/components/Row.jsx`
- User-facing account view: `src/components/ProfileScreen.jsx`

`HomeScreen` is the likely aggregation point for banner and rows; `Navbar` provides cross-screen navigation and user/session affordances.

#### External Content Data Flow
Network request configuration and endpoint definitions are separated from rendering:
- `src/data/axios.js`
- `src/data/Request.jsx`
- `src/components/Row.jsx`

The expected flow is endpoint definitions → configured Axios client → row-level content retrieval/rendering. This creates a clear external API boundary: UI components display remote catalog/media data but request details live in the data layer.

#### Deployment Infrastructure
Firebase Hosting is configured by `firebase.json` and `.firebaserc`; `.firebase/hosting.YnVpbGQ.cache` indicates a deployed or prepared hosting artifact cache. Production delivery is static CRA output deployed to Firebase Hosting, while Firebase configuration in `src/config/firebase.js` supports client-side Firebase services.

Main entry points: [`src/App.js`](https://github.com/1sourav1/netflix_cloneee/blob/main/src/App.js) (App composition), [`src/components/HomeScreen.jsx`](https://github.com/1sourav1/netflix_cloneee/blob/main/src/components/HomeScreen.jsx) (Home screen), [`src/redux/store/store.js`](https://github.com/1sourav1/netflix_cloneee/blob/main/src/redux/store/store.js) (Redux store), [`src/config/firebase.js`](https://github.com/1sourav1/netflix_cloneee/blob/main/src/config/firebase.js) (Firebase client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["React client"]
  node_html["HTML mount document<br/>CRA document<br/>[index.html]"]
  node_entry["Client entry<br/>React bootstrap<br/>[index.js]"]
  node_app["App composition<br/>React root<br/>[App.js]"]
  node_styles["Global styles<br/>CSS<br/>[App.css]"]
  node_navbar["Navigation<br/>UI component<br/>[Navbar.jsx]"]
  node_home["Home screen<br/>UI orchestrator<br/>[HomeScreen.jsx]"]
  node_banner["Featured banner<br/>UI component<br/>[Banner.jsx]"]
  node_row["Content row<br/>UI/data consumer<br/>[Row.jsx]"]
  node_profile["Profile screen<br/>UI component<br/>[ProfileScreen.jsx]"]
  node_login["Login screen<br/>Auth screen<br/>[LoginScreen.jsx]"]
  node_signup["Signup screen<br/>Auth screen<br/>[SignupScreen.jsx]"]
end

subgraph group_state["State &amp; services"]
  node_store[("Redux store<br/>Shared state<br/>[store.js]")]
  node_user_slice["User slice<br/>Redux state model<br/>[userSlice.js]"]
  node_firebase{{"Firebase client<br/>Identity service boundary<br/>[firebase.js]"}}
  node_requests["Endpoint definitions<br/>API request catalog<br/>[Request.jsx]"]
  node_axios{{"Axios client<br/>HTTP client<br/>[axios.js]"}}
end

subgraph group_delivery["Hosting"]
  node_hosting_config["Firebase Hosting config<br/>Deployment config<br/>[firebase.json]"]
  node_hosting_project["Firebase project config<br/>Deployment config<br/>[.firebaserc]"]
  node_firebase_hosting{{"Firebase Hosting<br/>Static delivery"}}
end

node_html -->|"mounts"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"uses"| node_styles
node_app -->|"composes"| node_navbar
node_app -->|"composes"| node_home
node_app -->|"composes"| node_profile
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_signup
node_home -->|"composes"| node_banner
node_home -->|"composes"| node_row
node_requests -->|"defines requests for"| node_axios
node_axios -->|"retrieves catalog data"| node_row
node_user_slice -->|"registered in"| node_store
node_store -->|"provides user state"| node_navbar
node_store -->|"provides user state"| node_profile
node_login -->|"authenticates via"| node_firebase
node_signup -->|"registers via"| node_firebase
node_firebase -->|"drives session state"| node_user_slice
node_hosting_config -->|"configures"| node_firebase_hosting
node_hosting_project -->|"selects project"| node_firebase_hosting
node_firebase_hosting -.->|"delivers"| node_html

click node_html "https://github.com/1sourav1/netflix_cloneee/blob/main/public/index.html"
click node_entry "https://github.com/1sourav1/netflix_cloneee/blob/main/src/index.js"
click node_app "https://github.com/1sourav1/netflix_cloneee/blob/main/src/App.js"
click node_styles "https://github.com/1sourav1/netflix_cloneee/blob/main/src/App.css"
click node_navbar "https://github.com/1sourav1/netflix_cloneee/blob/main/src/components/Navbar.jsx"
click node_home "https://github.com/1sourav1/netflix_cloneee/blob/main/src/components/HomeScreen.jsx"
click node_banner "https://github.com/1sourav1/netflix_cloneee/blob/main/src/components/Banner.jsx"
click node_row "https://github.com/1sourav1/netflix_cloneee/blob/main/src/components/Row.jsx"
click node_profile "https://github.com/1sourav1/netflix_cloneee/blob/main/src/components/ProfileScreen.jsx"
click node_login "https://github.com/1sourav1/netflix_cloneee/blob/main/src/auth/LoginScreen.jsx"
click node_signup "https://github.com/1sourav1/netflix_cloneee/blob/main/src/auth/SignupScreen.jsx"
click node_store "https://github.com/1sourav1/netflix_cloneee/blob/main/src/redux/store/store.js"
click node_user_slice "https://github.com/1sourav1/netflix_cloneee/blob/main/src/redux/slice/userSlice.js"
click node_firebase "https://github.com/1sourav1/netflix_cloneee/blob/main/src/config/firebase.js"
click node_requests "https://github.com/1sourav1/netflix_cloneee/blob/main/src/data/Request.jsx"
click node_axios "https://github.com/1sourav1/netflix_cloneee/blob/main/src/data/axios.js"
click node_hosting_config "https://github.com/1sourav1/netflix_cloneee/blob/main/firebase.json"
click node_hosting_project "https://github.com/1sourav1/netflix_cloneee/blob/main/.firebaserc"

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_html,node_entry,node_app,node_styles,node_navbar,node_home,node_banner,node_row,node_profile,node_login,node_signup toneBlue
class node_store,node_user_slice,node_firebase,node_requests,node_axios toneAmber
class node_hosting_config,node_hosting_project,node_firebase_hosting toneMint
```

## Components

### React client

- [HTML mount document](https://github.com/1sourav1/netflix_cloneee/blob/main/public/index.html): CRA document · `public/index.html`
- [Client entry](https://github.com/1sourav1/netflix_cloneee/blob/main/src/index.js): React bootstrap · `src/index.js`
- [App composition](https://github.com/1sourav1/netflix_cloneee/blob/main/src/App.js): React root · `src/App.js`
- [Global styles](https://github.com/1sourav1/netflix_cloneee/blob/main/src/App.css): CSS · `src/App.css`
- [Navigation](https://github.com/1sourav1/netflix_cloneee/blob/main/src/components/Navbar.jsx): UI component · `src/components/Navbar.jsx`
- [Home screen](https://github.com/1sourav1/netflix_cloneee/blob/main/src/components/HomeScreen.jsx): UI orchestrator · Aggregates featured and row content. · `src/components/HomeScreen.jsx`
- [Featured banner](https://github.com/1sourav1/netflix_cloneee/blob/main/src/components/Banner.jsx): UI component · `src/components/Banner.jsx`
- [Content row](https://github.com/1sourav1/netflix_cloneee/blob/main/src/components/Row.jsx): UI/data consumer · Fetches and renders repeatable media collections. · `src/components/Row.jsx`
- [Profile screen](https://github.com/1sourav1/netflix_cloneee/blob/main/src/components/ProfileScreen.jsx): UI component · `src/components/ProfileScreen.jsx`
- [Login screen](https://github.com/1sourav1/netflix_cloneee/blob/main/src/auth/LoginScreen.jsx): Auth screen · `src/auth/LoginScreen.jsx`
- [Signup screen](https://github.com/1sourav1/netflix_cloneee/blob/main/src/auth/SignupScreen.jsx): Auth screen · `src/auth/SignupScreen.jsx`

### State & services

- [Redux store](https://github.com/1sourav1/netflix_cloneee/blob/main/src/redux/store/store.js): Shared state · `src/redux/store/store.js`
- [User slice](https://github.com/1sourav1/netflix_cloneee/blob/main/src/redux/slice/userSlice.js): Redux state model · Models authenticated user state transitions. · `src/redux/slice/userSlice.js`
- [Firebase client](https://github.com/1sourav1/netflix_cloneee/blob/main/src/config/firebase.js): Identity service boundary · `src/config/firebase.js`
- [Endpoint definitions](https://github.com/1sourav1/netflix_cloneee/blob/main/src/data/Request.jsx): API request catalog · `src/data/Request.jsx`
- [Axios client](https://github.com/1sourav1/netflix_cloneee/blob/main/src/data/axios.js): HTTP client · `src/data/axios.js`

### Hosting

- [Firebase Hosting config](https://github.com/1sourav1/netflix_cloneee/blob/main/firebase.json): Deployment config · `firebase.json`
- [Firebase project config](https://github.com/1sourav1/netflix_cloneee/blob/main/.firebaserc): Deployment config · `.firebaserc`
- **Firebase Hosting**: Static delivery · Serves the production CRA build.

## Connections

- HTML mount document → Client entry: mounts
- Client entry → App composition: renders
- App composition → Global styles: uses
- App composition → Navigation: composes
- App composition → Home screen: composes
- App composition → Profile screen: composes
- App composition → Login screen: routes to
- App composition → Signup screen: routes to
- Home screen → Featured banner: composes
- Home screen → Content row: composes
- Endpoint definitions → Axios client: defines requests for
- Axios client → Content row: retrieves catalog data
- User slice → Redux store: registered in
- Redux store → Navigation: provides user state
- Redux store → Profile screen: provides user state
- Login screen → Firebase client: authenticates via
- Signup screen → Firebase client: registers via
- Firebase client → User slice: drives session state
- Firebase Hosting config → Firebase Hosting: configures
- Firebase project config → Firebase Hosting: selects project
- Firebase Hosting → HTML mount document: delivers
