# debasmita-rana/vidhyanidhi-scholarship-website architecture

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

- Interactive diagram: https://gitdiagram.com/debasmita-rana/vidhyanidhi-scholarship-website
- Repository: https://github.com/debasmita-rana/vidhyanidhi-scholarship-website

## Overview

Vidhyanidhi is a scholarship discovery and administration application. Students create profiles, browse and compare scholarships, receive eligibility and AI recommendations, apply, and track application status; administrators maintain scholarships, review applications, and view analytics. The React app routes users to these workflows, while the Express API handles requests, applies authentication and role checks, and persists domain records in MongoDB. AI recommendations combine rule-based matching with generated explanations. Frontend-to-API request wiring is not shown in the excerpts, so those links are marked unverified.

Main entry points: [`Frontend/src/App.jsx`](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/App.jsx) (Web routes), [`backend/server.js`](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/server.js) (Express server), [`backend/controllers/aiController.js`](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/controllers/aiController.js) (AI endpoints), [`backend/services/recommendationService.js`](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/services/recommendationService.js) (Rule-based matching)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_student["Student experience"]
  node_web_app["Web routes<br/>[App.jsx]"]
  node_profile_ui["Profile management<br/>[Profile.jsx]"]
  node_scholarship_ui["Scholarship discovery<br/>[Scholarships.jsx]"]
  node_scholarship_detail_ui["Scholarship details"]
  node_student_apps_ui["My applications<br/>[MyApplications.jsx]"]
  node_recommend_ui["Recommendations"]
  node_chat_ui["Scholarship chat<br/>[AIChat.jsx]"]
  node_compare_ui["Scholarship comparison<br/>[AIComparison.jsx]"]
end

subgraph group_admin["Administration"]
  node_admin_scholarships_ui["Scholarship management"]
  node_admin_apps_ui["Application review"]
  node_app_detail_ui["Application details"]
  node_analytics_ui["Admin analytics<br/>[AdminAnalytics.jsx]"]
end

subgraph group_api["API and domain logic"]
  node_api_server["Express server<br/>[server.js]"]
  node_profile_api["Profile API"]
  node_scholarship_api["Scholarship API"]
  node_application_api["Application workflow"]
  node_analytics_api["Analytics API"]
  node_auth_api["Authentication API<br/>[authController.js]"]
end

subgraph group_data["Domain data"]
  node_profile_store[("Student profiles<br/>[StudentProfile.js]")]
  node_scholarship_store[("Scholarships<br/>[Scholarship.js]")]
  node_application_store[("Applications<br/>[Application.js]")]
  node_user_store[("User accounts<br/>[User.js]")]
end

subgraph group_ai["AI services"]
  node_ai_api["AI endpoints<br/>[aiController.js]"]
  node_recommendation_logic["Rule-based matching"]
  node_eligibility_logic["Eligibility rules"]
  node_match_scoring["Match scoring"]
  node_groq_service["AI generation<br/>[groqService.js]"]
end

node_student_actor(("Student"))
node_admin_actor(("Administrator"))

node_student_actor -->|"uses"| node_web_app
node_admin_actor -->|"uses"| node_web_app
node_web_app -->|"routes to"| node_profile_ui
node_web_app -->|"routes to"| node_scholarship_ui
node_web_app -->|"routes to"| node_scholarship_detail_ui
node_web_app -->|"routes to"| node_student_apps_ui
node_web_app -->|"routes to"| node_recommend_ui
node_web_app -->|"routes to"| node_chat_ui
node_web_app -->|"routes to"| node_compare_ui
node_web_app -->|"routes to"| node_admin_scholarships_ui
node_web_app -->|"routes to"| node_admin_apps_ui
node_web_app -->|"routes to"| node_app_detail_ui
node_web_app -->|"routes to"| node_analytics_ui
node_api_server -->|"mounts routes"| node_profile_api
node_api_server -->|"mounts routes"| node_scholarship_api
node_api_server -->|"mounts routes"| node_application_api
node_api_server -->|"mounts routes"| node_ai_api
node_api_server -->|"mounts routes"| node_analytics_api
node_profile_api -->|"reads and writes"| node_profile_store
node_application_api -->|"reads and writes"| node_application_store
node_application_api -->|"checks scholarship"| node_scholarship_store
node_application_api -->|"loads profile"| node_profile_store
node_scholarship_api -->|"reads and writes"| node_scholarship_store
node_auth_api -->|"reads and writes"| node_user_store
node_ai_api -->|"loads profile"| node_profile_store
node_ai_api -->|"loads application"| node_application_store
node_ai_api -->|"loads scholarships"| node_scholarship_store
node_ai_api -->|"requests matches"| node_recommendation_logic
node_ai_api -->|"requests generation"| node_groq_service
node_recommendation_logic -->|"reads profile"| node_profile_store
node_recommendation_logic -->|"reads scholarships"| node_scholarship_store
node_recommendation_logic -->|"checks eligibility"| node_eligibility_logic
node_recommendation_logic -->|"scores matches"| node_match_scoring
node_student_actor -.->|"submits requests"| node_api_server
node_admin_actor -.->|"submits requests"| node_api_server

click node_web_app "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/App.jsx"
click node_profile_ui "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/Profile.jsx"
click node_scholarship_ui "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/Scholarships.jsx"
click node_scholarship_detail_ui "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/ScholarshipDetails.jsx"
click node_student_apps_ui "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/MyApplications.jsx"
click node_recommend_ui "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/AIRecommendation.jsx"
click node_chat_ui "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/AIChat.jsx"
click node_compare_ui "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/AIComparison.jsx"
click node_admin_scholarships_ui "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/ManageScholarships.jsx"
click node_admin_apps_ui "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/AdminApplications.jsx"
click node_app_detail_ui "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/ApplicationDetails.jsx"
click node_analytics_ui "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/AdminAnalytics.jsx"
click node_api_server "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/server.js"
click node_profile_api "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/controllers/profileController.js"
click node_scholarship_api "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/controllers/scholarshipController.js"
click node_application_api "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/controllers/applicationController.js"
click node_analytics_api "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/controllers/analyticsController.js"
click node_ai_api "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/controllers/aiController.js"
click node_recommendation_logic "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/services/recommendationService.js"
click node_eligibility_logic "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/utils/eligibilityChecker.js"
click node_match_scoring "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/utils/calculateMatchScore.js"
click node_groq_service "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/services/groqService.js"
click node_profile_store "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/models/StudentProfile.js"
click node_scholarship_store "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/models/Scholarship.js"
click node_application_store "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/models/Application.js"
click node_user_store "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/models/User.js"
click node_auth_api "https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/controllers/authController.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_web_app,node_profile_ui,node_scholarship_ui,node_scholarship_detail_ui,node_student_apps_ui,node_recommend_ui,node_chat_ui,node_compare_ui toneBlue
class node_admin_scholarships_ui,node_admin_apps_ui,node_app_detail_ui,node_analytics_ui toneAmber
class node_api_server,node_profile_api,node_scholarship_api,node_application_api,node_analytics_api,node_auth_api toneMint
class node_profile_store,node_scholarship_store,node_application_store,node_user_store toneRose
class node_ai_api,node_recommendation_logic,node_eligibility_logic,node_match_scoring,node_groq_service,node_student_actor,node_admin_actor toneIndigo
```

## Components

### Student experience

- [Web routes](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/App.jsx): `Frontend/src/App.jsx`
- [Profile management](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/Profile.jsx): `Frontend/src/components/Profile.jsx`
- [Scholarship discovery](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/Scholarships.jsx): `Frontend/src/components/Scholarships.jsx`
- [Scholarship details](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/ScholarshipDetails.jsx): `Frontend/src/components/ScholarshipDetails.jsx`
- [My applications](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/MyApplications.jsx): `Frontend/src/components/MyApplications.jsx`
- [Recommendations](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/AIRecommendation.jsx): `Frontend/src/components/AIRecommendation.jsx`
- [Scholarship chat](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/AIChat.jsx): `Frontend/src/components/AIChat.jsx`
- [Scholarship comparison](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/AIComparison.jsx): `Frontend/src/components/AIComparison.jsx`

### Administration

- [Scholarship management](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/ManageScholarships.jsx): `Frontend/src/components/ManageScholarships.jsx`
- [Application review](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/AdminApplications.jsx): `Frontend/src/components/AdminApplications.jsx`
- [Application details](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/ApplicationDetails.jsx): `Frontend/src/components/ApplicationDetails.jsx`
- [Admin analytics](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/Frontend/src/components/AdminAnalytics.jsx): `Frontend/src/components/AdminAnalytics.jsx`

### API and domain logic

- [Express server](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/server.js): `backend/server.js`
- [Profile API](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/controllers/profileController.js): `backend/controllers/profileController.js`
- [Scholarship API](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/controllers/scholarshipController.js): `backend/controllers/scholarshipController.js`
- [Application workflow](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/controllers/applicationController.js): `backend/controllers/applicationController.js`
- [Analytics API](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/controllers/analyticsController.js): `backend/controllers/analyticsController.js`
- [Authentication API](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/controllers/authController.js): `backend/controllers/authController.js`

### Domain data

- [Student profiles](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/models/StudentProfile.js): `backend/models/StudentProfile.js`
- [Scholarships](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/models/Scholarship.js): `backend/models/Scholarship.js`
- [Applications](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/models/Application.js): `backend/models/Application.js`
- [User accounts](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/models/User.js): `backend/models/User.js`

### AI services

- [AI endpoints](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/controllers/aiController.js): `backend/controllers/aiController.js`
- [Rule-based matching](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/services/recommendationService.js): `backend/services/recommendationService.js`
- [Eligibility rules](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/utils/eligibilityChecker.js): `backend/utils/eligibilityChecker.js`
- [Match scoring](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/utils/calculateMatchScore.js): `backend/utils/calculateMatchScore.js`
- [AI generation](https://github.com/debasmita-rana/vidhyanidhi-scholarship-website/blob/main/backend/services/groqService.js): `backend/services/groqService.js`

### Other components

- **Student**
- **Administrator**

## Connections

- Student → Web routes: uses (evidence: `Frontend/src/App.jsx`)
- Administrator → Web routes: uses (evidence: `Frontend/src/App.jsx`)
- Web routes → Profile management: routes to (evidence: `Frontend/src/App.jsx`)
- Web routes → Scholarship discovery: routes to (evidence: `Frontend/src/App.jsx`)
- Web routes → Scholarship details: routes to (evidence: `Frontend/src/App.jsx`)
- Web routes → My applications: routes to (evidence: `Frontend/src/App.jsx`)
- Web routes → Recommendations: routes to (evidence: `Frontend/src/App.jsx`)
- Web routes → Scholarship chat: routes to (evidence: `Frontend/src/App.jsx`)
- Web routes → Scholarship comparison: routes to (evidence: `Frontend/src/App.jsx`)
- Web routes → Scholarship management: routes to (evidence: `Frontend/src/App.jsx`)
- Web routes → Application review: routes to (evidence: `Frontend/src/App.jsx`)
- Web routes → Application details: routes to (evidence: `Frontend/src/App.jsx`)
- Web routes → Admin analytics: routes to (evidence: `Frontend/src/App.jsx`)
- Express server → Profile API: mounts routes (evidence: `backend/server.js`)
- Express server → Scholarship API: mounts routes (evidence: `backend/server.js`)
- Express server → Application workflow: mounts routes (evidence: `backend/server.js`)
- Express server → AI endpoints: mounts routes (evidence: `backend/server.js`)
- Express server → Analytics API: mounts routes (evidence: `backend/server.js`)
- Profile API → Student profiles: reads and writes (evidence: `backend/controllers/profileController.js`)
- Application workflow → Applications: reads and writes (evidence: `backend/controllers/applicationController.js`)
- Application workflow → Scholarships: checks scholarship (evidence: `backend/controllers/applicationController.js`)
- Application workflow → Student profiles: loads profile (evidence: `backend/controllers/applicationController.js`)
- Scholarship API → Scholarships: reads and writes (evidence: `backend/controllers/scholarshipController.js`)
- Authentication API → User accounts: reads and writes (evidence: `backend/controllers/authController.js`)
- AI endpoints → Student profiles: loads profile (evidence: `backend/controllers/aiController.js`)
- AI endpoints → Applications: loads application (evidence: `backend/controllers/aiController.js`)
- AI endpoints → Scholarships: loads scholarships (evidence: `backend/controllers/aiController.js`)
- AI endpoints → Rule-based matching: requests matches (evidence: `backend/controllers/aiController.js`)
- AI endpoints → AI generation: requests generation (evidence: `backend/controllers/aiController.js`)
- Rule-based matching → Student profiles: reads profile (evidence: `backend/services/recommendationService.js`)
- Rule-based matching → Scholarships: reads scholarships (evidence: `backend/services/recommendationService.js`)
- Rule-based matching → Eligibility rules: checks eligibility (evidence: `backend/services/recommendationService.js`)
- Rule-based matching → Match scoring: scores matches (evidence: `backend/services/recommendationService.js`)
- Student → Express server: submits requests
- Administrator → Express server: submits requests
