# powerldevan/hindi_school_project architecture

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

- Interactive diagram: https://gitdiagram.com/powerldevan/hindi_school_project
- Repository: https://github.com/powerldevan/hindi_school_project

## Overview

This is a small React portal for Balvihar Hindi School of Atlanta. A visitor enters username, password, and role on the sign-in screen; submitting stores the username and role in App state and navigates to the dashboard, where users can browse portal sections and log out. The dashboard currently shows static welcome and announcement content. Firebase is initialized in a separate module, but the sampled app entry points do not import it; no authentication or portal data access is demonstrated.

Main entry points: [`src/App.jsx`](https://github.com/powerldevan/hindi_school_project/blob/main/src/App.jsx) (Routes and state), [`src/pages/Login.jsx`](https://github.com/powerldevan/hindi_school_project/blob/main/src/pages/Login.jsx) (Sign-in form), [`src/pages/Dashboard.jsx`](https://github.com/powerldevan/hindi_school_project/blob/main/src/pages/Dashboard.jsx) (Portal dashboard), [`src/main.jsx`](https://github.com/powerldevan/hindi_school_project/blob/main/src/main.jsx) (React bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["App runtime"]
  node_bootstrap["React bootstrap<br/>[main.jsx]"]
  node_app["Routes and state<br/>[App.jsx]"]
end

subgraph group_portal["Portal experience"]
  node_login["Sign-in form<br/>[Login.jsx]"]
  node_dashboard["Portal dashboard<br/>[Dashboard.jsx]"]
end

subgraph group_integration["Firebase setup"]
  node_firebase_init["Firebase initializer<br/>[firebase.js]"]
end

node_visitor(("Visitor"))
node_firebase_service["Firebase SDK"]

node_bootstrap -->|"renders"| node_app
node_visitor -->|"enters credentials"| node_login
node_app -->|"routes to"| node_login
node_login -->|"sets user data"| node_app
node_login -->|"navigates dashboard"| node_app
node_app -->|"routes to"| node_dashboard
node_visitor -->|"uses portal"| node_dashboard
node_dashboard -->|"navigates home"| node_app
node_firebase_init -->|"initializes app"| node_firebase_service

click node_bootstrap "https://github.com/powerldevan/hindi_school_project/blob/main/src/main.jsx"
click node_app "https://github.com/powerldevan/hindi_school_project/blob/main/src/App.jsx"
click node_login "https://github.com/powerldevan/hindi_school_project/blob/main/src/pages/Login.jsx"
click node_dashboard "https://github.com/powerldevan/hindi_school_project/blob/main/src/pages/Dashboard.jsx"
click node_firebase_init "https://github.com/powerldevan/hindi_school_project/blob/main/src/firebase.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_bootstrap,node_app toneBlue
class node_login,node_dashboard toneAmber
class node_firebase_init toneMint
class node_visitor,node_firebase_service toneIndigo
```

## Components

### App runtime

- [React bootstrap](https://github.com/powerldevan/hindi_school_project/blob/main/src/main.jsx): `src/main.jsx`
- [Routes and state](https://github.com/powerldevan/hindi_school_project/blob/main/src/App.jsx): `src/App.jsx`

### Portal experience

- [Sign-in form](https://github.com/powerldevan/hindi_school_project/blob/main/src/pages/Login.jsx): `src/pages/Login.jsx`
- [Portal dashboard](https://github.com/powerldevan/hindi_school_project/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`

### Firebase setup

- [Firebase initializer](https://github.com/powerldevan/hindi_school_project/blob/main/src/firebase.js): `src/firebase.js`

### Other components

- **Visitor**
- **Firebase SDK**

## Connections

- React bootstrap → Routes and state: renders (evidence: `src/main.jsx`)
- Visitor → Sign-in form: enters credentials (evidence: `src/pages/Login.jsx`)
- Routes and state → Sign-in form: routes to (evidence: `src/App.jsx`)
- Sign-in form → Routes and state: sets user data (evidence: `src/App.jsx`)
- Sign-in form → Routes and state: navigates dashboard (evidence: `src/pages/Login.jsx`)
- Routes and state → Portal dashboard: routes to (evidence: `src/App.jsx`)
- Visitor → Portal dashboard: uses portal (evidence: `src/pages/Dashboard.jsx`)
- Portal dashboard → Routes and state: navigates home (evidence: `src/pages/Dashboard.jsx`)
- Firebase initializer → Firebase SDK: initializes app (evidence: `src/firebase.js`)
