# abhijith-abn/drishti architecture

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

- Interactive diagram: https://gitdiagram.com/abhijith-abn/drishti
- Repository: https://github.com/abhijith-abn/drishti

## Overview

Drishti is a learning and course-booking portal for students and institutions, with an admin area for managing requests, course offerings, and online slots. The visible user flow enters through the routed frontend, authenticates through Supabase, and reaches course selection, where users can book or enroll through role-specific dialogs. Quiz, batch-joining, and dashboard pages are also routed product capabilities. The tree includes a separate Spring backend, but its source was not sampled, so its internal relationships are left unspecified; several frontend page capabilities are likewise represented without inferred behavior.

Main entry points: [`drishti-frontend/src/App.js`](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/App.js) (Routed App), [`drishti-frontend/src/pages/CourseSelection.js`](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/CourseSelection.js) (Course Selection), [`drishti-frontend/src/SupabaseClient.js`](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/SupabaseClient.js) (Supabase Client), [`drishti-frontend/src/pages/LandingPage.js`](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/LandingPage.js) (Landing Page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Discovery &amp; Information"]
  node_app["Routed App<br/>[App.js]"]
  node_landing["Landing Page<br/>[LandingPage.js]"]
  node_reviews["Review Cards<br/>[ReviewCard.js]"]
  node_about["About Page<br/>[About.js]"]
  node_contact["Contact Page<br/>[contact.js]"]
  node_navbar["Navigation &amp; Session<br/>[Navbar.js]"]
end

subgraph group_learning["Learning &amp; Booking"]
  node_auth["Authentication<br/>[AuthPage.js]"]
  node_course["Course Selection<br/>[CourseSelection.js]"]
  node_coursecard["Course Card<br/>[CourseCard.js]"]
  node_institutionbooking["Institution Booking"]
  node_studentbooking["Student Enrollment"]
  node_quiz["Quiz<br/>[QuizPage.js]"]
  node_joinbatch["Join Batch<br/>[JoinBatch.js]"]
  node_dashboard["User Dashboard<br/>[Dashboard.js]"]
end

subgraph group_management["Management &amp; Data"]
  node_admin["Admin Dashboard<br/>[AdminDashboard.js]"]
  node_supabaseclient["Supabase Client<br/>[SupabaseClient.js]"]
end

subgraph group_backend["Backend Services"]
  node_springapp["Spring Application"]
  node_security["Security Configuration"]
  node_profilecontroller["Profile Controller"]
  node_slotcontroller["Course Slot Controller"]
  node_user["User Entity<br/>[User.java]"]
  node_userrepo["User Repository"]
end

node_visitor(("Visitor / User"))
node_supabase[("Supabase")]

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_auth
node_app -->|"routes to"| node_course
node_app -->|"routes to"| node_quiz
node_app -->|"routes to"| node_joinbatch
node_app -->|"routes to"| node_admin
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_contact
node_app -->|"routes to"| node_dashboard
node_app -->|"renders"| node_navbar
node_landing -->|"renders"| node_reviews
node_course -->|"renders"| node_coursecard
node_course -->|"renders"| node_institutionbooking
node_course -->|"renders"| node_studentbooking
node_auth -->|"calls auth"| node_supabaseclient
node_navbar -->|"checks session"| node_supabaseclient
node_course -->|"fetches role"| node_supabaseclient
node_admin -->|"reads and updates"| node_supabaseclient
node_supabaseclient -->|"configures client"| node_supabase

click node_app "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/App.js"
click node_landing "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/LandingPage.js"
click node_reviews "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/components/ReviewCard.js"
click node_about "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/About.js"
click node_contact "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/contact.js"
click node_navbar "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/components/Navbar.js"
click node_auth "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/AuthPage.js"
click node_course "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/CourseSelection.js"
click node_coursecard "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/components/CourseCard.js"
click node_institutionbooking "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/components/InstitutionBookingModal.js"
click node_studentbooking "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/components/StudentBookingModal.js"
click node_quiz "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/QuizPage.js"
click node_joinbatch "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/JoinBatch.js"
click node_dashboard "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/Dashboard.js"
click node_admin "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/AdminDashboard.js"
click node_supabaseclient "https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/SupabaseClient.js"
click node_springapp "https://github.com/abhijith-abn/drishti/blob/main/drishti-backend/drishti/src/main/java/com/example/drishti/DrishtiApplication.java"
click node_security "https://github.com/abhijith-abn/drishti/blob/main/drishti-backend/drishti/src/main/java/com/example/drishti/config/SecurityConfig.java"
click node_profilecontroller "https://github.com/abhijith-abn/drishti/blob/main/drishti-backend/drishti/src/main/java/com/example/drishti/controller/ProfileController.java"
click node_slotcontroller "https://github.com/abhijith-abn/drishti/blob/main/drishti-backend/drishti/src/main/java/com/example/drishti/controller/CourseSlotController.js"
click node_user "https://github.com/abhijith-abn/drishti/blob/main/drishti-backend/drishti/src/main/java/com/example/drishti/entity/User.java"
click node_userrepo "https://github.com/abhijith-abn/drishti/blob/main/drishti-backend/drishti/src/main/java/com/example/drishti/repository/UserRepository.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_app,node_landing,node_reviews,node_about,node_contact,node_navbar,node_visitor toneBlue
class node_auth,node_course,node_coursecard,node_institutionbooking,node_studentbooking,node_quiz,node_joinbatch,node_dashboard,node_supabase toneAmber
class node_admin,node_supabaseclient toneMint
class node_springapp,node_security,node_profilecontroller,node_slotcontroller,node_user,node_userrepo toneRose
```

## Components

### Discovery & Information

- [Routed App](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/App.js): `drishti-frontend/src/App.js`
- [Landing Page](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/LandingPage.js): `drishti-frontend/src/pages/LandingPage.js`
- [Review Cards](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/components/ReviewCard.js): `drishti-frontend/src/components/ReviewCard.js`
- [About Page](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/About.js): `drishti-frontend/src/pages/About.js`
- [Contact Page](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/contact.js): `drishti-frontend/src/pages/contact.js`
- [Navigation & Session](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/components/Navbar.js): `drishti-frontend/src/components/Navbar.js`

### Learning & Booking

- [Authentication](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/AuthPage.js): `drishti-frontend/src/pages/AuthPage.js`
- [Course Selection](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/CourseSelection.js): `drishti-frontend/src/pages/CourseSelection.js`
- [Course Card](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/components/CourseCard.js): `drishti-frontend/src/components/CourseCard.js`
- [Institution Booking](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/components/InstitutionBookingModal.js): `drishti-frontend/src/components/InstitutionBookingModal.js`
- [Student Enrollment](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/components/StudentBookingModal.js): `drishti-frontend/src/components/StudentBookingModal.js`
- [Quiz](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/QuizPage.js): `drishti-frontend/src/pages/QuizPage.js`
- [Join Batch](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/JoinBatch.js): `drishti-frontend/src/pages/JoinBatch.js`
- [User Dashboard](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/Dashboard.js): `drishti-frontend/src/pages/Dashboard.js`

### Management & Data

- [Admin Dashboard](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/pages/AdminDashboard.js): `drishti-frontend/src/pages/AdminDashboard.js`
- [Supabase Client](https://github.com/abhijith-abn/drishti/blob/main/drishti-frontend/src/SupabaseClient.js): `drishti-frontend/src/SupabaseClient.js`

### Backend Services

- [Spring Application](https://github.com/abhijith-abn/drishti/blob/main/drishti-backend/drishti/src/main/java/com/example/drishti/DrishtiApplication.java): `drishti-backend/drishti/src/main/java/com/example/drishti/DrishtiApplication.java`
- [Security Configuration](https://github.com/abhijith-abn/drishti/blob/main/drishti-backend/drishti/src/main/java/com/example/drishti/config/SecurityConfig.java): `drishti-backend/drishti/src/main/java/com/example/drishti/config/SecurityConfig.java`
- [Profile Controller](https://github.com/abhijith-abn/drishti/blob/main/drishti-backend/drishti/src/main/java/com/example/drishti/controller/ProfileController.java): `drishti-backend/drishti/src/main/java/com/example/drishti/controller/ProfileController.java`
- [Course Slot Controller](https://github.com/abhijith-abn/drishti/blob/main/drishti-backend/drishti/src/main/java/com/example/drishti/controller/CourseSlotController.js): `drishti-backend/drishti/src/main/java/com/example/drishti/controller/CourseSlotController.js`
- [User Entity](https://github.com/abhijith-abn/drishti/blob/main/drishti-backend/drishti/src/main/java/com/example/drishti/entity/User.java): `drishti-backend/drishti/src/main/java/com/example/drishti/entity/User.java`
- [User Repository](https://github.com/abhijith-abn/drishti/blob/main/drishti-backend/drishti/src/main/java/com/example/drishti/repository/UserRepository.java): `drishti-backend/drishti/src/main/java/com/example/drishti/repository/UserRepository.java`

### Other components

- **Visitor / User**
- **Supabase**

## Connections

- Visitor / User → Routed App: opens (evidence: `drishti-frontend/src/App.js`)
- Routed App → Landing Page: routes to (evidence: `drishti-frontend/src/App.js`)
- Routed App → Authentication: routes to (evidence: `drishti-frontend/src/App.js`)
- Routed App → Course Selection: routes to (evidence: `drishti-frontend/src/App.js`)
- Routed App → Quiz: routes to (evidence: `drishti-frontend/src/App.js`)
- Routed App → Join Batch: routes to (evidence: `drishti-frontend/src/App.js`)
- Routed App → Admin Dashboard: routes to (evidence: `drishti-frontend/src/App.js`)
- Routed App → About Page: routes to (evidence: `drishti-frontend/src/App.js`)
- Routed App → Contact Page: routes to (evidence: `drishti-frontend/src/App.js`)
- Routed App → User Dashboard: routes to (evidence: `drishti-frontend/src/App.js`)
- Routed App → Navigation & Session: renders (evidence: `drishti-frontend/src/App.js`)
- Landing Page → Review Cards: renders (evidence: `drishti-frontend/src/pages/LandingPage.js`)
- Course Selection → Course Card: renders (evidence: `drishti-frontend/src/pages/CourseSelection.js`)
- Course Selection → Institution Booking: renders (evidence: `drishti-frontend/src/pages/CourseSelection.js`)
- Course Selection → Student Enrollment: renders (evidence: `drishti-frontend/src/pages/CourseSelection.js`)
- Authentication → Supabase Client: calls auth (evidence: `drishti-frontend/src/pages/AuthPage.js`)
- Navigation & Session → Supabase Client: checks session (evidence: `drishti-frontend/src/components/Navbar.js`)
- Course Selection → Supabase Client: fetches role (evidence: `drishti-frontend/src/pages/CourseSelection.js`)
- Admin Dashboard → Supabase Client: reads and updates (evidence: `drishti-frontend/src/pages/AdminDashboard.js`)
- Supabase Client → Supabase: configures client (evidence: `drishti-frontend/src/SupabaseClient.js`)
