# dineshkumar007-dk/examination-system-saa architecture

> Architecture diagram of the GitHub repository dineshkumar007-dk/examination-system-saa, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dineshkumar007-dk/examination-system-saa
- Repository: https://github.com/dineshkumar007-dk/examination-system-saa

## Overview

EXAMPRO is a centralized examination platform for candidates and examination staff. Candidates register and verify their accounts, receive center and slot allocations, take assigned examinations, and view results when published; invigilators support admission, while examiners author and publish slide-based papers and administrators manage assignments and operations. The graph follows the documented React-to-API workflow and the sampled server routing and service references. Some detailed route behavior and unsampled modules are not shown, so their internal links are omitted where evidence is unavailable.

Main entry points: [`frontend/react/src/main.jsx`](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/main.jsx) (React portal), [`backend/src/routes/api.js`](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/routes/api.js) (API routes), [`backend/src/config/database.js`](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/config/database.js) (Database connection), [`backend/src/services/communications.js`](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/communications.js) (Email and notifications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["User portals"]
  node_react_app["React portal<br/>[main.jsx]"]
  node_candidate_workspace["Candidate workspace<br/>[workspace.jsx]"]
  node_candidate_dashboard["Candidate dashboard"]
  node_exam_screen["Exam screen<br/>[exam.jsx]"]
  node_examiner_workspace["Examiner workspace<br/>[examiner.jsx]"]
  node_shared_components["Shared UI components<br/>[components.jsx]"]
  node_api_client["API client<br/>[api.js]"]
end

subgraph group_server["API and security"]
  node_express_app["Express application<br/>[app.js]"]
  node_api_routes["API routes<br/>[api.js]"]
  node_examiner_routes["Examiner routes<br/>[examiner.js]"]
  node_auth_handlers["Authentication handlers<br/>[auth-controller.js]"]
  node_security_middleware["Sessions and access controls<br/>[security.js]"]
end

subgraph group_operations["Exam operations"]
  node_registration_service["Candidate registration<br/>[registrations.js]"]
  node_admin_service["Administration and allocation<br/>[administration.js]"]
  node_exam_service["Exam attempts and results<br/>[exams.js]"]
end

subgraph group_papers["Paper authoring"]
  node_question_papers["Question-paper management<br/>[question-papers.js]"]
  node_powerpoint["PowerPoint processing<br/>[powerpoint.js]"]
  node_slide_worker["Slide render worker"]
end

subgraph group_infrastructure["Data and delivery"]
  node_database_config["Database connection<br/>[database.js]"]
  node_mysql[("Managed MySQL")]
  node_auth_service["Authentication service<br/>[auth.js]"]
  node_communications["Email and notifications<br/>[communications.js]"]
  node_smtp["SMTP provider"]
end

node_candidate(("Candidate"))
node_staff(("Invigilator"))
node_examiner(("Examiner"))
node_admin(("Administrator"))

node_candidate -->|"uses"| node_react_app
node_staff -->|"signs in"| node_react_app
node_examiner -->|"authors papers"| node_react_app
node_admin -->|"manages exams"| node_react_app
node_react_app -->|"renders"| node_candidate_workspace
node_react_app -->|"renders"| node_exam_screen
node_react_app -->|"loads"| node_examiner_workspace
node_candidate_workspace -->|"renders"| node_candidate_dashboard
node_react_app -->|"uses"| node_shared_components
node_candidate_workspace -->|"uses"| node_shared_components
node_exam_screen -->|"uses"| node_shared_components
node_examiner_workspace -->|"uses"| node_shared_components
node_react_app -->|"requests through"| node_api_client
node_candidate_workspace -->|"requests through"| node_api_client
node_exam_screen -->|"requests through"| node_api_client
node_examiner_workspace -->|"requests through"| node_api_client
node_api_client -->|"calls API"| node_api_routes
node_express_app -->|"mounts"| node_api_routes
node_api_routes -->|"dispatches"| node_auth_handlers
node_api_routes -->|"calls"| node_registration_service
node_api_routes -->|"calls"| node_admin_service
node_api_routes -->|"calls"| node_exam_service
node_api_routes -->|"calls"| node_communications
node_api_routes -->|"mounts"| node_examiner_routes
node_examiner_routes -->|"calls"| node_question_papers
node_auth_handlers -->|"calls"| node_auth_service
node_auth_handlers -->|"calls"| node_admin_service
node_express_app -->|"applies"| node_security_middleware
node_security_middleware -->|"queries"| node_database_config
node_registration_service -->|"queries"| node_database_config
node_admin_service -->|"queries"| node_database_config
node_exam_service -->|"queries"| node_database_config
node_question_papers -->|"queries"| node_database_config
node_auth_service -->|"queries"| node_database_config
node_auth_service -->|"sends verification"| node_communications
node_communications -->|"queues notifications"| node_database_config
node_admin_service -->|"uses"| node_communications
node_exam_service -->|"uses"| node_communications
node_database_config -->|"connects to"| node_mysql
node_communications -->|"sends mail"| node_smtp
node_question_papers -->|"processes slides"| node_powerpoint
node_slide_worker -.->|"renders slides"| node_powerpoint

click node_react_app "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/main.jsx"
click node_candidate_workspace "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/workspace.jsx"
click node_candidate_dashboard "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/candidate-dashboard.jsx"
click node_exam_screen "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/exam.jsx"
click node_examiner_workspace "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/examiner.jsx"
click node_shared_components "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/components.jsx"
click node_api_client "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/api.js"
click node_express_app "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/app.js"
click node_api_routes "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/routes/api.js"
click node_examiner_routes "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/routes/examiner.js"
click node_auth_handlers "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/controllers/auth-controller.js"
click node_security_middleware "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/middleware/security.js"
click node_registration_service "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/registrations.js"
click node_admin_service "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/administration.js"
click node_exam_service "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/exams.js"
click node_question_papers "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/question-papers.js"
click node_powerpoint "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/powerpoint.js"
click node_slide_worker "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/slide-render-worker.js"
click node_database_config "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/config/database.js"
click node_auth_service "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/auth.js"
click node_communications "https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/communications.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_react_app,node_candidate_workspace,node_candidate_dashboard,node_exam_screen,node_examiner_workspace,node_shared_components,node_api_client toneBlue
class node_express_app,node_api_routes,node_examiner_routes,node_auth_handlers,node_security_middleware toneAmber
class node_registration_service,node_admin_service,node_exam_service toneMint
class node_question_papers,node_powerpoint,node_slide_worker toneRose
class node_database_config,node_mysql,node_auth_service,node_communications,node_smtp,node_candidate,node_staff,node_examiner,node_admin toneIndigo
```

## Components

### User portals

- [React portal](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/main.jsx): `frontend/react/src/main.jsx`
- [Candidate workspace](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/workspace.jsx): `frontend/react/src/workspace.jsx`
- [Candidate dashboard](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/candidate-dashboard.jsx): `frontend/react/src/candidate-dashboard.jsx`
- [Exam screen](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/exam.jsx): `frontend/react/src/exam.jsx`
- [Examiner workspace](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/examiner.jsx): `frontend/react/src/examiner.jsx`
- [Shared UI components](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/components.jsx): `frontend/react/src/components.jsx`
- [API client](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/frontend/react/src/api.js): `frontend/react/src/api.js`

### API and security

- [Express application](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/app.js): `backend/src/app.js`
- [API routes](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/routes/api.js): `backend/src/routes/api.js`
- [Examiner routes](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/routes/examiner.js): `backend/src/routes/examiner.js`
- [Authentication handlers](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/controllers/auth-controller.js): `backend/src/controllers/auth-controller.js`
- [Sessions and access controls](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/middleware/security.js): `backend/src/middleware/security.js`

### Exam operations

- [Candidate registration](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/registrations.js): `backend/src/services/registrations.js`
- [Administration and allocation](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/administration.js): `backend/src/services/administration.js`
- [Exam attempts and results](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/exams.js): `backend/src/services/exams.js`

### Paper authoring

- [Question-paper management](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/question-papers.js): `backend/src/services/question-papers.js`
- [PowerPoint processing](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/powerpoint.js): `backend/src/services/powerpoint.js`
- [Slide render worker](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/slide-render-worker.js): `backend/src/services/slide-render-worker.js`

### Data and delivery

- [Database connection](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/config/database.js): `backend/src/config/database.js`
- **Managed MySQL**
- [Authentication service](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/auth.js): `backend/src/services/auth.js`
- [Email and notifications](https://github.com/dineshkumar007-dk/examination-system-saa/blob/main/backend/src/services/communications.js): `backend/src/services/communications.js`
- **SMTP provider**

### Other components

- **Candidate**
- **Invigilator**
- **Examiner**
- **Administrator**

## Connections

- Candidate → React portal: uses
- Invigilator → React portal: signs in
- Examiner → React portal: authors papers
- Administrator → React portal: manages exams
- React portal → Candidate workspace: renders (evidence: `frontend/react/src/main.jsx`)
- React portal → Exam screen: renders (evidence: `frontend/react/src/main.jsx`)
- React portal → Examiner workspace: loads (evidence: `frontend/react/src/main.jsx`)
- Candidate workspace → Candidate dashboard: renders (evidence: `frontend/react/src/workspace.jsx`)
- React portal → Shared UI components: uses (evidence: `frontend/react/src/main.jsx`)
- Candidate workspace → Shared UI components: uses (evidence: `frontend/react/src/workspace.jsx`)
- Exam screen → Shared UI components: uses (evidence: `frontend/react/src/exam.jsx`)
- Examiner workspace → Shared UI components: uses (evidence: `frontend/react/src/examiner.jsx`)
- React portal → API client: requests through (evidence: `frontend/react/src/main.jsx`)
- Candidate workspace → API client: requests through (evidence: `frontend/react/src/workspace.jsx`)
- Exam screen → API client: requests through (evidence: `frontend/react/src/exam.jsx`)
- Examiner workspace → API client: requests through (evidence: `frontend/react/src/examiner.jsx`)
- API client → API routes: calls API
- Express application → API routes: mounts (evidence: `backend/src/app.js`)
- API routes → Authentication handlers: dispatches (evidence: `backend/src/routes/api.js`)
- API routes → Candidate registration: calls (evidence: `backend/src/routes/api.js`)
- API routes → Administration and allocation: calls (evidence: `backend/src/routes/api.js`)
- API routes → Exam attempts and results: calls (evidence: `backend/src/routes/api.js`)
- API routes → Email and notifications: calls (evidence: `backend/src/routes/api.js`)
- API routes → Examiner routes: mounts (evidence: `backend/src/routes/api.js`)
- Examiner routes → Question-paper management: calls (evidence: `backend/src/routes/examiner.js`)
- Authentication handlers → Authentication service: calls (evidence: `backend/src/controllers/auth-controller.js`)
- Authentication handlers → Administration and allocation: calls (evidence: `backend/src/controllers/auth-controller.js`)
- Express application → Sessions and access controls: applies (evidence: `backend/src/app.js`)
- Sessions and access controls → Database connection: queries (evidence: `backend/src/middleware/security.js`)
- Candidate registration → Database connection: queries (evidence: `backend/src/services/registrations.js`)
- Administration and allocation → Database connection: queries (evidence: `backend/src/services/administration.js`)
- Exam attempts and results → Database connection: queries (evidence: `backend/src/services/exams.js`)
- Question-paper management → Database connection: queries (evidence: `backend/src/services/question-papers.js`)
- Authentication service → Database connection: queries (evidence: `backend/src/services/auth.js`)
- Authentication service → Email and notifications: sends verification (evidence: `backend/src/services/auth.js`)
- Email and notifications → Database connection: queues notifications (evidence: `backend/src/services/communications.js`)
- Administration and allocation → Email and notifications: uses (evidence: `backend/src/services/administration.js`)
- Exam attempts and results → Email and notifications: uses (evidence: `backend/src/services/exams.js`)
- Database connection → Managed MySQL: connects to (evidence: `backend/src/config/database.js`)
- Email and notifications → SMTP provider: sends mail (evidence: `backend/src/services/communications.js`)
- Question-paper management → PowerPoint processing: processes slides (evidence: `backend/src/services/question-papers.js`)
- Slide render worker → PowerPoint processing: renders slides
