# thamidalamalakhibabu-png/ascet-assginment-hub architecture

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

- Interactive diagram: https://gitdiagram.com/thamidalamalakhibabu-png/ascet-assginment-hub
- Repository: https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub

## Overview

ASCET Assignment Hub is a role-based academic assignment lifecycle platform. Its principal workflow runs from faculty assignment creation through student validation and submission, deadline assessment, evidence receipt, and faculty evaluation or requested resubmission. The graph combines the sampled route and controller wiring with documented product capabilities. Some frontend-to-backend connections are HTTP-based and not visible in a single source excerpt; those links are marked as documented or unverified accordingly.

Main entry points: [`frontend/src/App.tsx`](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/App.tsx) (Application shell), [`backend/src/routes/apiRoutes.ts`](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/routes/apiRoutes.ts) (REST route dispatch), [`backend/src/controllers/submissionController.ts`](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/submissionController.ts) (Submission lifecycle), [`backend/src/services/store.ts`](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/services/store.ts) (Hub state store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Role-based client"]
  node_app["Application shell<br/>[App.tsx]"]
  node_studentdash["Student dashboard"]
  node_facultydash["Faculty dashboard"]
  node_admindash["Admin dashboard<br/>[AdminDashboard.tsx]"]
  node_login["Role login<br/>[LoginPage.tsx]"]
  node_header["Navigation header<br/>[Header.tsx]"]
  node_submitmodal["Submission form"]
  node_receiptmodal["Evidence receipt"]
  node_journeymodal["Assignment journey"]
  node_versionmodal["Version history"]
  node_notificationsui["Notification drawer"]
  node_api["Frontend API client<br/>[api.ts]"]
end

subgraph group_api["API workflows"]
  node_routes["REST route dispatch<br/>[apiRoutes.ts]"]
  node_auth["Authentication<br/>[authController.ts]"]
  node_assignments["Assignment management"]
  node_submissions["Submission lifecycle"]
  node_evaluation["Evaluation and revisions"]
  node_analytics["Institutional analytics"]
  node_adminops["Admin and audit<br/>[adminController.ts]"]
  node_notifications["Notification operations"]
  node_server["API server<br/>[server.ts]"]
end

subgraph group_services["Submission services"]
  node_healthcheck["Submission health checks"]
  node_late["Late detection"]
  node_evidence["Evidence fingerprinting<br/>[evidenceService.ts]"]
end

subgraph group_data["Persistence and records"]
  node_store[("Hub state store<br/>[store.ts]")]
  node_models[("Academic data models<br/>[academicModels.ts]")]
  node_db[("Database connection<br/>[db.ts]")]
end

node_student(("Student"))
node_faculty(("Faculty"))
node_admin(("Administrator"))

node_student -->|"signs in"| node_login
node_faculty -->|"signs in"| node_login
node_admin -->|"signs in"| node_login
node_app -->|"renders"| node_login
node_app -->|"renders"| node_header
node_app -->|"renders"| node_studentdash
node_app -->|"renders"| node_facultydash
node_app -->|"renders"| node_admindash
node_app -->|"renders"| node_submitmodal
node_app -->|"renders"| node_receiptmodal
node_app -->|"renders"| node_journeymodal
node_app -->|"renders"| node_versionmodal
node_app -->|"renders"| node_notificationsui
node_app -->|"loads data"| node_api
node_studentdash -->|"opens submission"| node_submitmodal
node_faculty -.->|"manages work"| node_facultydash
node_admin -.->|"manages institution"| node_admindash
node_facultydash -->|"creates and evaluates"| node_api
node_submitmodal -->|"submits work"| node_api
node_api -.->|"calls REST API"| node_routes
node_server -->|"mounts routes"| node_routes
node_server -->|"connects database"| node_db
node_routes -->|"dispatches auth"| node_auth
node_routes -->|"dispatches assignments"| node_assignments
node_routes -->|"dispatches submissions"| node_submissions
node_routes -->|"dispatches evaluations"| node_evaluation
node_routes -->|"dispatches analytics"| node_analytics
node_routes -->|"dispatches notifications"| node_notifications
node_routes -->|"dispatches admin"| node_adminops
node_assignments -->|"reads and writes"| node_store
node_submissions -->|"reads and writes"| node_store
node_submissions -->|"validates submission"| node_healthcheck
node_submissions -->|"checks deadline"| node_late
node_submissions -->|"generates checksum"| node_evidence
node_evaluation -->|"updates records"| node_store
node_analytics -->|"reads metrics"| node_store
node_notifications -->|"reads and updates"| node_store
node_adminops -->|"reads records"| node_store
node_submissions -.->|"issues receipt"| node_receiptmodal
node_evaluation -.->|"returns marks"| node_studentdash
node_evaluation -.->|"notifies student"| node_notificationsui
node_models -.->|"defines persisted schema"| node_db

click node_app "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/App.tsx"
click node_studentdash "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/StudentDashboard.tsx"
click node_facultydash "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/FacultyDashboard.tsx"
click node_admindash "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/AdminDashboard.tsx"
click node_login "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/LoginPage.tsx"
click node_header "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/Header.tsx"
click node_submitmodal "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/SubmissionModal.tsx"
click node_receiptmodal "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/EvidenceReceiptModal.tsx"
click node_journeymodal "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/AssignmentJourneyModal.tsx"
click node_versionmodal "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/VersionHistoryModal.tsx"
click node_notificationsui "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/NotificationDrawer.tsx"
click node_api "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/services/api.ts"
click node_routes "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/routes/apiRoutes.ts"
click node_auth "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/authController.ts"
click node_assignments "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/assignmentController.ts"
click node_submissions "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/submissionController.ts"
click node_evaluation "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/evaluationController.ts"
click node_analytics "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/analyticsController.ts"
click node_adminops "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/adminController.ts"
click node_notifications "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/notificationController.ts"
click node_healthcheck "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/services/healthCheckService.ts"
click node_late "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/services/lateDetectionService.ts"
click node_evidence "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/services/evidenceService.ts"
click node_store "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/services/store.ts"
click node_models "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/models/academicModels.ts"
click node_db "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/config/db.ts"
click node_server "https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/server.ts"

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_studentdash,node_facultydash,node_admindash,node_login,node_header,node_submitmodal,node_receiptmodal,node_journeymodal,node_versionmodal,node_notificationsui,node_api toneBlue
class node_routes,node_auth,node_assignments,node_submissions,node_evaluation,node_analytics,node_adminops,node_notifications,node_server toneAmber
class node_healthcheck,node_late,node_evidence toneMint
class node_store,node_models,node_db toneRose
class node_student,node_faculty,node_admin toneIndigo
```

## Components

### Role-based client

- [Application shell](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Student dashboard](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/StudentDashboard.tsx): `frontend/src/components/StudentDashboard.tsx`
- [Faculty dashboard](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/FacultyDashboard.tsx): `frontend/src/components/FacultyDashboard.tsx`
- [Admin dashboard](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/AdminDashboard.tsx): `frontend/src/components/AdminDashboard.tsx`
- [Role login](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/LoginPage.tsx): `frontend/src/components/LoginPage.tsx`
- [Navigation header](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/Header.tsx): `frontend/src/components/Header.tsx`
- [Submission form](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/SubmissionModal.tsx): `frontend/src/components/SubmissionModal.tsx`
- [Evidence receipt](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/EvidenceReceiptModal.tsx): `frontend/src/components/EvidenceReceiptModal.tsx`
- [Assignment journey](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/AssignmentJourneyModal.tsx): `frontend/src/components/AssignmentJourneyModal.tsx`
- [Version history](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/VersionHistoryModal.tsx): `frontend/src/components/VersionHistoryModal.tsx`
- [Notification drawer](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/components/NotificationDrawer.tsx): `frontend/src/components/NotificationDrawer.tsx`
- [Frontend API client](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`

### API workflows

- [REST route dispatch](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/routes/apiRoutes.ts): `backend/src/routes/apiRoutes.ts`
- [Authentication](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/authController.ts): `backend/src/controllers/authController.ts`
- [Assignment management](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/assignmentController.ts): `backend/src/controllers/assignmentController.ts`
- [Submission lifecycle](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/submissionController.ts): `backend/src/controllers/submissionController.ts`
- [Evaluation and revisions](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/evaluationController.ts): `backend/src/controllers/evaluationController.ts`
- [Institutional analytics](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/analyticsController.ts): `backend/src/controllers/analyticsController.ts`
- [Admin and audit](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/adminController.ts): `backend/src/controllers/adminController.ts`
- [Notification operations](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/controllers/notificationController.ts): `backend/src/controllers/notificationController.ts`
- [API server](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/server.ts): `backend/src/server.ts`

### Submission services

- [Submission health checks](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/services/healthCheckService.ts): `backend/src/services/healthCheckService.ts`
- [Late detection](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/services/lateDetectionService.ts): `backend/src/services/lateDetectionService.ts`
- [Evidence fingerprinting](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/services/evidenceService.ts): `backend/src/services/evidenceService.ts`

### Persistence and records

- [Hub state store](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/services/store.ts): `backend/src/services/store.ts`
- [Academic data models](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/models/academicModels.ts): `backend/src/models/academicModels.ts`
- [Database connection](https://github.com/thamidalamalakhibabu-png/ascet-assginment-hub/blob/main/backend/src/config/db.ts): `backend/src/config/db.ts`

### Other components

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

## Connections

- Student → Role login: signs in
- Faculty → Role login: signs in
- Administrator → Role login: signs in
- Application shell → Role login: renders (evidence: `frontend/src/App.tsx`)
- Application shell → Navigation header: renders (evidence: `frontend/src/App.tsx`)
- Application shell → Student dashboard: renders (evidence: `frontend/src/App.tsx`)
- Application shell → Faculty dashboard: renders (evidence: `frontend/src/App.tsx`)
- Application shell → Admin dashboard: renders (evidence: `frontend/src/App.tsx`)
- Application shell → Submission form: renders (evidence: `frontend/src/App.tsx`)
- Application shell → Evidence receipt: renders (evidence: `frontend/src/App.tsx`)
- Application shell → Assignment journey: renders (evidence: `frontend/src/App.tsx`)
- Application shell → Version history: renders (evidence: `frontend/src/App.tsx`)
- Application shell → Notification drawer: renders (evidence: `frontend/src/App.tsx`)
- Application shell → Frontend API client: loads data (evidence: `frontend/src/App.tsx`)
- Student dashboard → Submission form: opens submission (evidence: `frontend/src/App.tsx`)
- Faculty → Faculty dashboard: manages work
- Administrator → Admin dashboard: manages institution
- Faculty dashboard → Frontend API client: creates and evaluates (evidence: `frontend/src/components/FacultyDashboard.tsx`)
- Submission form → Frontend API client: submits work (evidence: `frontend/src/services/api.ts`)
- Frontend API client → REST route dispatch: calls REST API
- API server → REST route dispatch: mounts routes (evidence: `backend/src/server.ts`)
- API server → Database connection: connects database (evidence: `backend/src/server.ts`)
- REST route dispatch → Authentication: dispatches auth (evidence: `backend/src/routes/apiRoutes.ts`)
- REST route dispatch → Assignment management: dispatches assignments (evidence: `backend/src/routes/apiRoutes.ts`)
- REST route dispatch → Submission lifecycle: dispatches submissions (evidence: `backend/src/routes/apiRoutes.ts`)
- REST route dispatch → Evaluation and revisions: dispatches evaluations (evidence: `backend/src/routes/apiRoutes.ts`)
- REST route dispatch → Institutional analytics: dispatches analytics (evidence: `backend/src/routes/apiRoutes.ts`)
- REST route dispatch → Notification operations: dispatches notifications (evidence: `backend/src/routes/apiRoutes.ts`)
- REST route dispatch → Admin and audit: dispatches admin (evidence: `backend/src/routes/apiRoutes.ts`)
- Assignment management → Hub state store: reads and writes (evidence: `backend/src/controllers/assignmentController.ts`)
- Submission lifecycle → Hub state store: reads and writes (evidence: `backend/src/controllers/submissionController.ts`)
- Submission lifecycle → Submission health checks: validates submission (evidence: `backend/src/controllers/submissionController.ts`)
- Submission lifecycle → Late detection: checks deadline (evidence: `backend/src/controllers/submissionController.ts`)
- Submission lifecycle → Evidence fingerprinting: generates checksum (evidence: `backend/src/controllers/submissionController.ts`)
- Evaluation and revisions → Hub state store: updates records (evidence: `backend/src/controllers/evaluationController.ts`)
- Institutional analytics → Hub state store: reads metrics (evidence: `backend/src/controllers/analyticsController.ts`)
- Notification operations → Hub state store: reads and updates (evidence: `backend/src/controllers/notificationController.ts`)
- Admin and audit → Hub state store: reads records (evidence: `backend/src/controllers/adminController.ts`)
- Submission lifecycle → Evidence receipt: issues receipt
- Evaluation and revisions → Student dashboard: returns marks
- Evaluation and revisions → Notification drawer: notifies student
- Academic data models → Database connection: defines persisted schema
