# explorer-consulting/schoolfeedbackwebapi architecture

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

- Interactive diagram: https://gitdiagram.com/explorer-consulting/schoolfeedbackwebapi
- Repository: https://github.com/explorer-consulting/schoolfeedbackwebapi

## Overview

SchoolFeedBackWebAPI is a school-survey and feedback product: staff configure surveys and student groups, students answer questionnaires, and the system produces reports and notifications. The README documents these capabilities; the tree identifies the frontend, Azure Functions, application services, repositories, and report compiler that implement them. Source excerpts are limited, so edges below rely on README-documented workflow relationships; internal call paths and several integrations are not asserted where they were not shown.

Main entry points: [`FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/QuestionnaireFunctions.cs`](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/QuestionnaireFunctions.cs) (HTTP function endpoints), [`FeedBackApp.Backend/Application/Services/ReportService.cs`](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/Application/Services/ReportService.cs) (Report orchestration), [`FeedBackApp.Frontend/src/api/ReviewApi.tsx`](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Frontend/src/api/ReviewApi.tsx) (Frontend API client), [`FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/ReportFunctions.cs`](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/ReportFunctions.cs) (Report endpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["User interfaces"]
  node_dashboard["Role dashboards<br/>[AdminDashboard.tsx]"]
  node_studentui["Student survey UI"]
  node_api["Frontend API client<br/>[ReviewApi.tsx]"]
end

subgraph group_survey["Survey lifecycle"]
  node_functions["HTTP function endpoints"]
  node_surveyservice["Survey management"]
  node_evalfunctions["Submission endpoints"]
  node_evalservice["Response evaluation"]
end

subgraph group_insights["Reports and messaging"]
  node_reportfunctions["Report endpoints<br/>[ReportFunctions.cs]"]
  node_reportservice["Report orchestration<br/>[ReportService.cs]"]
  node_compiler["Report compiler"]
  node_blob[("Report blob storage<br/>[BlobContext.cs]")]
  node_emailfunctions["Email dispatch endpoints"]
  node_emailservice["Email service<br/>[EmailService.cs]"]
end

subgraph group_platform["Identity and persistence"]
  node_auth["Authentication endpoints<br/>[AuthFunctions.cs]"]
  node_otp["Passwordless OTP<br/>[OtpService.cs]"]
  node_db[("Cosmos data store<br/>[AppDbContext.cs]")]
  node_qrepo["Questionnaire repository"]
  node_mailrepo["Email repository<br/>[EmailRepository.cs]"]
end

node_staff(("Teachers and admins"))
node_students(("Students"))

node_staff -->|"manages surveys"| node_dashboard
node_students -->|"answers surveys"| node_studentui
node_dashboard -.->|"requests data"| node_api
node_studentui -.->|"submits answers"| node_api
node_api -.->|"calls API"| node_functions
node_functions -.->|"handles management"| node_surveyservice
node_surveyservice -.->|"persists surveys"| node_qrepo
node_qrepo -->|"reads and writes"| node_db
node_functions -.->|"routes submissions"| node_evalfunctions
node_evalfunctions -.->|"handles responses"| node_evalservice
node_evalservice -.->|"enables reporting"| node_reportfunctions
node_reportfunctions -.->|"requests reports"| node_reportservice
node_reportservice -.->|"compiles reports"| node_compiler
node_reportservice -.->|"stores reports"| node_blob
node_staff -->|"requests reports"| node_reportfunctions
node_emailfunctions -.->|"dispatches email"| node_emailservice
node_emailservice -.->|"loads queued mail"| node_mailrepo
node_mailrepo -->|"reads and writes"| node_db
node_auth -.->|"uses OTP"| node_otp
node_students -->|"authenticates"| node_auth

click node_dashboard "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Frontend/src/pages/dashboards/AdminDashboard.tsx"
click node_studentui "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Frontend/src/components/feedback/FeedbackFormDynamic.tsx"
click node_api "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Frontend/src/api/ReviewApi.tsx"
click node_functions "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/QuestionnaireFunctions.cs"
click node_surveyservice "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/Application/Services/QuestionnaireService.cs"
click node_evalfunctions "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/EvaluationFunctions.cs"
click node_evalservice "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/Application/Services/EvaluationService.cs"
click node_reportfunctions "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/ReportFunctions.cs"
click node_reportservice "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/Application/Services/ReportService.cs"
click node_compiler "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/FeedBackApp.Core/ReportCompilerUtils/UtilityClasses/EvaluationReportCompiler.cs"
click node_blob "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Context/BlobContext.cs"
click node_emailfunctions "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/EmailSendingFunctions.cs"
click node_emailservice "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/Application/Services/EmailService.cs"
click node_auth "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/AuthFunctions.cs"
click node_otp "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/Application/Services/OtpService.cs"
click node_db "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Context/AppDbContext.cs"
click node_qrepo "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Repository/QuestionnaireRepository.cs"
click node_mailrepo "https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Repository/EmailRepository.cs"

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_dashboard,node_studentui,node_api toneBlue
class node_functions,node_surveyservice,node_evalfunctions,node_evalservice toneAmber
class node_reportfunctions,node_reportservice,node_compiler,node_blob,node_emailfunctions,node_emailservice toneMint
class node_auth,node_otp,node_db,node_qrepo,node_mailrepo toneRose
class node_staff,node_students toneIndigo
```

## Components

### User interfaces

- [Role dashboards](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Frontend/src/pages/dashboards/AdminDashboard.tsx): `FeedBackApp.Frontend/src/pages/dashboards/AdminDashboard.tsx`
- [Student survey UI](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Frontend/src/components/feedback/FeedbackFormDynamic.tsx): `FeedBackApp.Frontend/src/components/feedback/FeedbackFormDynamic.tsx`
- [Frontend API client](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Frontend/src/api/ReviewApi.tsx): `FeedBackApp.Frontend/src/api/ReviewApi.tsx`

### Survey lifecycle

- [HTTP function endpoints](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/QuestionnaireFunctions.cs): `FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/QuestionnaireFunctions.cs`
- [Survey management](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/Application/Services/QuestionnaireService.cs): `FeedBackApp.Backend/Application/Services/QuestionnaireService.cs`
- [Submission endpoints](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/EvaluationFunctions.cs): `FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/EvaluationFunctions.cs`
- [Response evaluation](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/Application/Services/EvaluationService.cs): `FeedBackApp.Backend/Application/Services/EvaluationService.cs`

### Reports and messaging

- [Report endpoints](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/ReportFunctions.cs): `FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/ReportFunctions.cs`
- [Report orchestration](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/Application/Services/ReportService.cs): `FeedBackApp.Backend/Application/Services/ReportService.cs`
- [Report compiler](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/FeedBackApp.Core/ReportCompilerUtils/UtilityClasses/EvaluationReportCompiler.cs): `FeedBackApp.Backend/FeedBackApp.Core/ReportCompilerUtils/UtilityClasses/EvaluationReportCompiler.cs`
- [Report blob storage](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Context/BlobContext.cs): `FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Context/BlobContext.cs`
- [Email dispatch endpoints](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/EmailSendingFunctions.cs): `FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/EmailSendingFunctions.cs`
- [Email service](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/Application/Services/EmailService.cs): `FeedBackApp.Backend/Application/Services/EmailService.cs`

### Identity and persistence

- [Authentication endpoints](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/AuthFunctions.cs): `FeedBackApp.Backend/AzureFunctionsAPI/AzureEndPointReaction/Functions/AuthFunctions.cs`
- [Passwordless OTP](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/Application/Services/OtpService.cs): `FeedBackApp.Backend/Application/Services/OtpService.cs`
- [Cosmos data store](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Context/AppDbContext.cs): `FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Context/AppDbContext.cs`
- [Questionnaire repository](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Repository/QuestionnaireRepository.cs): `FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Repository/QuestionnaireRepository.cs`
- [Email repository](https://github.com/explorer-consulting/schoolfeedbackwebapi/blob/develop/FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Repository/EmailRepository.cs): `FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Repository/EmailRepository.cs`

### Other components

- **Teachers and admins**
- **Students**

## Connections

- Teachers and admins → Role dashboards: manages surveys (evidence: `README.md`)
- Students → Student survey UI: answers surveys (evidence: `README.md`)
- Role dashboards → Frontend API client: requests data
- Student survey UI → Frontend API client: submits answers
- Frontend API client → HTTP function endpoints: calls API
- HTTP function endpoints → Survey management: handles management
- Survey management → Questionnaire repository: persists surveys
- Questionnaire repository → Cosmos data store: reads and writes (evidence: `FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Repository/QuestionnaireRepository.cs`)
- HTTP function endpoints → Submission endpoints: routes submissions
- Submission endpoints → Response evaluation: handles responses
- Response evaluation → Report endpoints: enables reporting
- Report endpoints → Report orchestration: requests reports
- Report orchestration → Report compiler: compiles reports
- Report orchestration → Report blob storage: stores reports
- Teachers and admins → Report endpoints: requests reports (evidence: `README.md`)
- Email dispatch endpoints → Email service: dispatches email
- Email service → Email repository: loads queued mail
- Email repository → Cosmos data store: reads and writes (evidence: `FeedBackApp.Backend/FeedBackApp.Backend.Infrastructure/Persistence/Repository/EmailRepository.cs`)
- Authentication endpoints → Passwordless OTP: uses OTP
- Students → Authentication endpoints: authenticates (evidence: `README.md`)
