# janani12407/fundease architecture

> Architecture diagram of the GitHub repository janani12407/fundease, 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/janani12407/fundease
- Repository: https://github.com/janani12407/fundease

## Overview

FundEase is a scholarship application, review, and disbursement platform. Students submit applications and documents; institution admins review and forward or return claims; scholarship authorities sanction and release funds; students receive a PDF voucher, while auditors and staff can inspect records and analytics. The graph follows documented routes and sampled controller calls. Analytics, audit, and several UI/API relationships are included as documented capabilities; their internal implementations were not sampled.

Main entry points: [`server/src/controllers/applicationController.js`](https://github.com/janani12407/fundease/blob/main/server/src/controllers/applicationController.js) (Application workflow), [`server/src/controllers/disbursementController.js`](https://github.com/janani12407/fundease/blob/main/server/src/controllers/disbursementController.js) (Fund release workflow), [`server/src/controllers/reviewController.js`](https://github.com/janani12407/fundease/blob/main/server/src/controllers/reviewController.js) (Review workflow), [`client/src/App.jsx`](https://github.com/janani12407/fundease/blob/main/client/src/App.jsx) (Application router)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portals["User portals"]
  node_student["Student portal"]
  node_wizard["Application wizard"]
  node_details["Application tracking"]
  node_institution["Institution review desk<br/>[AdminDashboard.jsx]"]
  node_authority["Authority sanction desk"]
  node_auditor["Audit explorer"]
  node_analytics_ui["Analytics dashboard"]
end

subgraph group_api["API and workflow"]
  node_app["Application router<br/>[App.jsx]"]
  node_api_routes["REST route dispatch<br/>[app.js]"]
  node_application_routes["Application routes"]
  node_application_workflow["Application workflow"]
  node_review_routes["Review routes<br/>[reviewRoutes.js]"]
  node_review_workflow["Review workflow"]
  node_disbursement_routes["Disbursement routes"]
  node_disbursement["Fund release workflow"]
  node_audit_api["Audit API<br/>[auditController.js]"]
  node_analytics_api["Analytics API"]
end

subgraph group_verification["Automated verification"]
  node_eligibility["Eligibility rules"]
  node_fraud["Duplicate fraud checks"]
  node_upload["Document upload and hashing<br/>[upload.js]"]
end

subgraph group_records["Records and delivery"]
  node_receipt["PDF voucher generation"]
  node_application_data[("Application records<br/>[Application.js]")]
  node_approval_data[("Approval history<br/>[ApprovalLog.js]")]
  node_audit_data[("Compliance audit log<br/>[AuditLog.js]")]
  node_transaction_data[("Transaction ledger<br/>[Transaction.js]")]
  node_user_data[("User accounts<br/>[User.js]")]
  node_document_data[("Uploaded documents<br/>[Document.js]")]
  node_notification_service["Status notifications<br/>[emailService.js]"]
  node_notification_data[("Notification records<br/>[Notification.js]")]
end

node_db[("MongoDB<br/>[db.js]")]
node_student_actor(("Student"))
node_staff_actor(("Review and audit staff"))

node_app -->|"routes to"| node_wizard
node_app -->|"routes to"| node_institution
node_app -->|"routes to"| node_authority
node_app -->|"routes to"| node_auditor
node_app -->|"routes to"| node_analytics_ui
node_student_actor -.->|"submits application"| node_wizard
node_wizard -.->|"sends application"| node_application_routes
node_institution -.->|"submits review"| node_review_routes
node_authority -.->|"submits sanction"| node_review_routes
node_authority -.->|"releases funds"| node_disbursement_routes
node_staff_actor -.->|"inspects records"| node_auditor
node_application_routes -->|"dispatches"| node_application_workflow
node_review_routes -->|"dispatches"| node_review_workflow
node_disbursement_routes -->|"dispatches"| node_disbursement
node_api_routes -->|"mounts"| node_application_routes
node_api_routes -->|"mounts"| node_review_routes
node_api_routes -->|"mounts"| node_disbursement_routes
node_application_workflow -->|"evaluates eligibility"| node_eligibility
node_application_workflow -->|"checks duplicates"| node_fraud
node_application_workflow -->|"hashes files"| node_upload
node_application_workflow -->|"creates and reads"| node_application_data
node_application_workflow -->|"creates documents"| node_document_data
node_application_workflow -->|"records events"| node_audit_data
node_application_workflow -->|"notifies status"| node_notification_service
node_review_workflow -->|"updates status"| node_application_data
node_review_workflow -->|"records decisions"| node_approval_data
node_review_workflow -->|"records actions"| node_audit_data
node_review_workflow -->|"looks up student"| node_user_data
node_review_workflow -->|"notifies status"| node_notification_service
node_disbursement -->|"locks and updates"| node_application_data
node_disbursement -->|"creates transaction"| node_transaction_data
node_disbursement -->|"records approval"| node_approval_data
node_disbursement -->|"records action"| node_audit_data
node_disbursement -->|"looks up student"| node_user_data
node_disbursement -->|"generates voucher"| node_receipt
node_disbursement -->|"notifies status"| node_notification_service
node_notification_service -->|"stores notifications"| node_notification_data
node_review_workflow -.->|"persists records"| node_db
node_audit_api -.->|"reads audit trail"| node_audit_data
node_analytics_api -.->|"aggregates metrics"| node_db
node_analytics_ui -.->|"requests metrics"| node_analytics_api
node_auditor -.->|"explores trail"| node_audit_api
node_receipt -.->|"voucher details"| node_transaction_data
node_student -.->|"tracks progress"| node_details

click node_student "https://github.com/janani12407/fundease/blob/main/client/src/pages/Student/StudentDashboard.jsx"
click node_wizard "https://github.com/janani12407/fundease/blob/main/client/src/pages/Student/ApplicationWizard.jsx"
click node_details "https://github.com/janani12407/fundease/blob/main/client/src/pages/Student/ApplicationDetails.jsx"
click node_institution "https://github.com/janani12407/fundease/blob/main/client/src/pages/InstitutionAdmin/AdminDashboard.jsx"
click node_authority "https://github.com/janani12407/fundease/blob/main/client/src/pages/Authority/AuthorityDashboard.jsx"
click node_auditor "https://github.com/janani12407/fundease/blob/main/client/src/pages/Auditor/AuditorDashboard.jsx"
click node_analytics_ui "https://github.com/janani12407/fundease/blob/main/client/src/pages/Analytics/AnalyticsDashboard.jsx"
click node_app "https://github.com/janani12407/fundease/blob/main/client/src/App.jsx"
click node_api_routes "https://github.com/janani12407/fundease/blob/main/server/src/app.js"
click node_application_routes "https://github.com/janani12407/fundease/blob/main/server/src/routes/applicationRoutes.js"
click node_application_workflow "https://github.com/janani12407/fundease/blob/main/server/src/controllers/applicationController.js"
click node_review_routes "https://github.com/janani12407/fundease/blob/main/server/src/routes/reviewRoutes.js"
click node_review_workflow "https://github.com/janani12407/fundease/blob/main/server/src/controllers/reviewController.js"
click node_eligibility "https://github.com/janani12407/fundease/blob/main/server/src/services/eligibilityService.js"
click node_fraud "https://github.com/janani12407/fundease/blob/main/server/src/services/fraudDetectionService.js"
click node_upload "https://github.com/janani12407/fundease/blob/main/server/src/middleware/upload.js"
click node_disbursement_routes "https://github.com/janani12407/fundease/blob/main/server/src/routes/disbursementRoutes.js"
click node_disbursement "https://github.com/janani12407/fundease/blob/main/server/src/controllers/disbursementController.js"
click node_receipt "https://github.com/janani12407/fundease/blob/main/server/src/services/pdfReceiptService.js"
click node_application_data "https://github.com/janani12407/fundease/blob/main/server/src/models/Application.js"
click node_approval_data "https://github.com/janani12407/fundease/blob/main/server/src/models/ApprovalLog.js"
click node_audit_data "https://github.com/janani12407/fundease/blob/main/server/src/models/AuditLog.js"
click node_transaction_data "https://github.com/janani12407/fundease/blob/main/server/src/models/Transaction.js"
click node_user_data "https://github.com/janani12407/fundease/blob/main/server/src/models/User.js"
click node_document_data "https://github.com/janani12407/fundease/blob/main/server/src/models/Document.js"
click node_notification_service "https://github.com/janani12407/fundease/blob/main/server/src/services/emailService.js"
click node_notification_data "https://github.com/janani12407/fundease/blob/main/server/src/models/Notification.js"
click node_audit_api "https://github.com/janani12407/fundease/blob/main/server/src/controllers/auditController.js"
click node_analytics_api "https://github.com/janani12407/fundease/blob/main/server/src/controllers/analyticsController.js"
click node_db "https://github.com/janani12407/fundease/blob/main/server/src/config/db.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_student,node_wizard,node_details,node_institution,node_authority,node_auditor,node_analytics_ui,node_staff_actor toneBlue
class node_app,node_api_routes,node_application_routes,node_application_workflow,node_review_routes,node_review_workflow,node_disbursement_routes,node_disbursement,node_audit_api,node_analytics_api,node_db toneAmber
class node_eligibility,node_fraud,node_upload toneMint
class node_receipt,node_application_data,node_approval_data,node_audit_data,node_transaction_data,node_user_data,node_document_data,node_notification_service,node_notification_data toneRose
class node_student_actor toneIndigo
```

## Components

### User portals

- [Student portal](https://github.com/janani12407/fundease/blob/main/client/src/pages/Student/StudentDashboard.jsx): `client/src/pages/Student/StudentDashboard.jsx`
- [Application wizard](https://github.com/janani12407/fundease/blob/main/client/src/pages/Student/ApplicationWizard.jsx): `client/src/pages/Student/ApplicationWizard.jsx`
- [Application tracking](https://github.com/janani12407/fundease/blob/main/client/src/pages/Student/ApplicationDetails.jsx): `client/src/pages/Student/ApplicationDetails.jsx`
- [Institution review desk](https://github.com/janani12407/fundease/blob/main/client/src/pages/InstitutionAdmin/AdminDashboard.jsx): `client/src/pages/InstitutionAdmin/AdminDashboard.jsx`
- [Authority sanction desk](https://github.com/janani12407/fundease/blob/main/client/src/pages/Authority/AuthorityDashboard.jsx): `client/src/pages/Authority/AuthorityDashboard.jsx`
- [Audit explorer](https://github.com/janani12407/fundease/blob/main/client/src/pages/Auditor/AuditorDashboard.jsx): `client/src/pages/Auditor/AuditorDashboard.jsx`
- [Analytics dashboard](https://github.com/janani12407/fundease/blob/main/client/src/pages/Analytics/AnalyticsDashboard.jsx): `client/src/pages/Analytics/AnalyticsDashboard.jsx`

### API and workflow

- [Application router](https://github.com/janani12407/fundease/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [REST route dispatch](https://github.com/janani12407/fundease/blob/main/server/src/app.js): `server/src/app.js`
- [Application routes](https://github.com/janani12407/fundease/blob/main/server/src/routes/applicationRoutes.js): `server/src/routes/applicationRoutes.js`
- [Application workflow](https://github.com/janani12407/fundease/blob/main/server/src/controllers/applicationController.js): `server/src/controllers/applicationController.js`
- [Review routes](https://github.com/janani12407/fundease/blob/main/server/src/routes/reviewRoutes.js): `server/src/routes/reviewRoutes.js`
- [Review workflow](https://github.com/janani12407/fundease/blob/main/server/src/controllers/reviewController.js): `server/src/controllers/reviewController.js`
- [Disbursement routes](https://github.com/janani12407/fundease/blob/main/server/src/routes/disbursementRoutes.js): `server/src/routes/disbursementRoutes.js`
- [Fund release workflow](https://github.com/janani12407/fundease/blob/main/server/src/controllers/disbursementController.js): `server/src/controllers/disbursementController.js`
- [Audit API](https://github.com/janani12407/fundease/blob/main/server/src/controllers/auditController.js): `server/src/controllers/auditController.js`
- [Analytics API](https://github.com/janani12407/fundease/blob/main/server/src/controllers/analyticsController.js): `server/src/controllers/analyticsController.js`

### Automated verification

- [Eligibility rules](https://github.com/janani12407/fundease/blob/main/server/src/services/eligibilityService.js): `server/src/services/eligibilityService.js`
- [Duplicate fraud checks](https://github.com/janani12407/fundease/blob/main/server/src/services/fraudDetectionService.js): `server/src/services/fraudDetectionService.js`
- [Document upload and hashing](https://github.com/janani12407/fundease/blob/main/server/src/middleware/upload.js): `server/src/middleware/upload.js`

### Records and delivery

- [PDF voucher generation](https://github.com/janani12407/fundease/blob/main/server/src/services/pdfReceiptService.js): `server/src/services/pdfReceiptService.js`
- [Application records](https://github.com/janani12407/fundease/blob/main/server/src/models/Application.js): `server/src/models/Application.js`
- [Approval history](https://github.com/janani12407/fundease/blob/main/server/src/models/ApprovalLog.js): `server/src/models/ApprovalLog.js`
- [Compliance audit log](https://github.com/janani12407/fundease/blob/main/server/src/models/AuditLog.js): `server/src/models/AuditLog.js`
- [Transaction ledger](https://github.com/janani12407/fundease/blob/main/server/src/models/Transaction.js): `server/src/models/Transaction.js`
- [User accounts](https://github.com/janani12407/fundease/blob/main/server/src/models/User.js): `server/src/models/User.js`
- [Uploaded documents](https://github.com/janani12407/fundease/blob/main/server/src/models/Document.js): `server/src/models/Document.js`
- [Status notifications](https://github.com/janani12407/fundease/blob/main/server/src/services/emailService.js): `server/src/services/emailService.js`
- [Notification records](https://github.com/janani12407/fundease/blob/main/server/src/models/Notification.js): `server/src/models/Notification.js`

### Other components

- [MongoDB](https://github.com/janani12407/fundease/blob/main/server/src/config/db.js): `server/src/config/db.js`
- **Student**
- **Review and audit staff**

## Connections

- Application router → Application wizard: routes to (evidence: `client/src/App.jsx`)
- Application router → Institution review desk: routes to (evidence: `client/src/App.jsx`)
- Application router → Authority sanction desk: routes to (evidence: `client/src/App.jsx`)
- Application router → Audit explorer: routes to (evidence: `client/src/App.jsx`)
- Application router → Analytics dashboard: routes to (evidence: `client/src/App.jsx`)
- Student → Application wizard: submits application
- Application wizard → Application routes: sends application
- Institution review desk → Review routes: submits review
- Authority sanction desk → Review routes: submits sanction
- Authority sanction desk → Disbursement routes: releases funds
- Review and audit staff → Audit explorer: inspects records
- Application routes → Application workflow: dispatches (evidence: `server/src/routes/applicationRoutes.js`)
- Review routes → Review workflow: dispatches (evidence: `server/src/routes/reviewRoutes.js`)
- Disbursement routes → Fund release workflow: dispatches (evidence: `server/src/routes/disbursementRoutes.js`)
- REST route dispatch → Application routes: mounts (evidence: `server/src/app.js`)
- REST route dispatch → Review routes: mounts (evidence: `server/src/app.js`)
- REST route dispatch → Disbursement routes: mounts (evidence: `server/src/app.js`)
- Application workflow → Eligibility rules: evaluates eligibility (evidence: `server/src/controllers/applicationController.js`)
- Application workflow → Duplicate fraud checks: checks duplicates (evidence: `server/src/controllers/applicationController.js`)
- Application workflow → Document upload and hashing: hashes files (evidence: `server/src/controllers/applicationController.js`)
- Application workflow → Application records: creates and reads (evidence: `server/src/controllers/applicationController.js`)
- Application workflow → Uploaded documents: creates documents (evidence: `server/src/controllers/applicationController.js`)
- Application workflow → Compliance audit log: records events (evidence: `server/src/controllers/applicationController.js`)
- Application workflow → Status notifications: notifies status (evidence: `server/src/controllers/applicationController.js`)
- Review workflow → Application records: updates status (evidence: `server/src/controllers/reviewController.js`)
- Review workflow → Approval history: records decisions (evidence: `server/src/controllers/reviewController.js`)
- Review workflow → Compliance audit log: records actions (evidence: `server/src/controllers/reviewController.js`)
- Review workflow → User accounts: looks up student (evidence: `server/src/controllers/reviewController.js`)
- Review workflow → Status notifications: notifies status (evidence: `server/src/controllers/reviewController.js`)
- Fund release workflow → Application records: locks and updates (evidence: `server/src/controllers/disbursementController.js`)
- Fund release workflow → Transaction ledger: creates transaction (evidence: `server/src/controllers/disbursementController.js`)
- Fund release workflow → Approval history: records approval (evidence: `server/src/controllers/disbursementController.js`)
- Fund release workflow → Compliance audit log: records action (evidence: `server/src/controllers/disbursementController.js`)
- Fund release workflow → User accounts: looks up student (evidence: `server/src/controllers/disbursementController.js`)
- Fund release workflow → PDF voucher generation: generates voucher (evidence: `server/src/controllers/disbursementController.js`)
- Fund release workflow → Status notifications: notifies status (evidence: `server/src/controllers/disbursementController.js`)
- Status notifications → Notification records: stores notifications (evidence: `server/src/services/emailService.js`)
- Review workflow → MongoDB: persists records
- Audit API → Compliance audit log: reads audit trail
- Analytics API → MongoDB: aggregates metrics
- Analytics dashboard → Analytics API: requests metrics
- Audit explorer → Audit API: explores trail
- PDF voucher generation → Transaction ledger: voucher details
- Student portal → Application tracking: tracks progress
