# kristiyan9359/kiddocare architecture

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

- Interactive diagram: https://gitdiagram.com/kristiyan9359/kiddocare
- Repository: https://github.com/kristiyan9359/kiddocare

## Overview

KiddoCare is a role-based kindergarten management web application. Administrators, teachers, and parents use its MVC interface to manage child and group information, care records, requests, documents, events, dashboards, and private conversations. The documented layered flow runs from the web application through business services to EF Core persistence. Sampled sources confirm dashboard and absence-request data access, messaging logic, and protected file operations; other feature links reflect README documentation rather than inspected implementation details.

Main entry points: [`KiddoCare.Web/Controllers`](https://github.com/kristiyan9359/kiddocare/tree/main/KiddoCare.Web/Controllers) (MVC controllers), [`KiddoCare.Data/ApplicationDbContext.cs`](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Data/ApplicationDbContext.cs) (EF Core context), [`KiddoCare.Services.Core/DashboardService.cs`](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/DashboardService.cs) (Role dashboards), [`KiddoCare.Services.Core/AbsenceRequestService.cs`](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/AbsenceRequestService.cs) (Absence requests)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_mvc["MVC controllers<br/>[Controllers]"]
  node_identity["Authentication and roles<br/>[Account]"]
  node_dash["Role dashboards"]
end

subgraph group_care["Care operations"]
  node_children["Child profiles<br/>[ChildService.cs]"]
  node_groups["Groups and assignments<br/>[GroupService.cs]"]
  node_attendance["Attendance"]
  node_absence["Absence requests"]
  node_reports["Daily care reports"]
  node_medical["Medical records"]
  node_consent["Consent requests"]
  node_documents["Child documents"]
  node_events["Events and announcements<br/>[EventService.cs]"]
  node_feed["Child activity feed"]
end

subgraph group_engagement["Communication"]
  node_messages["Private conversations<br/>[MessageService.cs]"]
  node_hub["Real-time messaging hub<br/>[MessageHub.cs]"]
end

subgraph group_platform["Persistence and files"]
  node_storage["Protected local files"]
  node_dbcontext["EF Core context"]
  node_models["Domain records"]
  node_sql[("SQL Server")]
end

node_users(("Admin, teacher, parent"))

node_users -->|"use"| node_mvc
node_users -->|"sign in"| node_identity
node_mvc -.->|"request dashboard"| node_dash
node_mvc -->|"manage children"| node_children
node_mvc -->|"manage documents"| node_documents
node_mvc -->|"manage conversations"| node_messages
node_mvc -->|"invoke hub"| node_hub
node_mvc -->|"store and retrieve files"| node_storage
node_mvc -.->|"manage attendance"| node_attendance
node_mvc -.->|"review requests"| node_absence
node_mvc -->|"manage reports"| node_reports
node_mvc -.->|"manage health records"| node_medical
node_mvc -.->|"respond to consent"| node_consent
node_mvc -.->|"manage groups"| node_groups
node_mvc -.->|"manage updates"| node_events
node_mvc -.->|"view activity"| node_feed
node_dash -->|"queries"| node_dbcontext
node_absence -->|"reads and saves"| node_dbcontext
node_messages -->|"reads and saves"| node_dbcontext
node_dbcontext -->|"maps records"| node_models
node_dbcontext -->|"persists data"| node_sql
node_storage -.->|"serves authorized files"| node_users

click node_mvc "https://github.com/kristiyan9359/kiddocare/tree/main/KiddoCare.Web/Controllers"
click node_identity "https://github.com/kristiyan9359/kiddocare/tree/main/KiddoCare.Web/Areas/Identity/Pages/Account"
click node_dash "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/DashboardService.cs"
click node_children "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/ChildService.cs"
click node_groups "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/GroupService.cs"
click node_attendance "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/AttendanceService.cs"
click node_absence "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/AbsenceRequestService.cs"
click node_reports "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/DailyReportService.cs"
click node_medical "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/MedicalRecordService.cs"
click node_consent "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/ConsentRequestService.cs"
click node_documents "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/ChildDocumentService.cs"
click node_events "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/EventService.cs"
click node_feed "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/ActivityFeedService.cs"
click node_messages "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/MessageService.cs"
click node_hub "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Web/Hubs/MessageHub.cs"
click node_storage "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Web/Services/LocalFileStorageService.cs"
click node_dbcontext "https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Data/ApplicationDbContext.cs"
click node_models "https://github.com/kristiyan9359/kiddocare/tree/main/KiddoCare.Data.Models"

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_mvc,node_identity,node_dash toneBlue
class node_children,node_groups,node_attendance,node_absence,node_reports,node_medical,node_consent,node_documents,node_events,node_feed toneAmber
class node_messages,node_hub toneMint
class node_storage,node_dbcontext,node_models,node_sql toneRose
class node_users toneIndigo
```

## Components

### Web interface

- [MVC controllers](https://github.com/kristiyan9359/kiddocare/tree/main/KiddoCare.Web/Controllers): `KiddoCare.Web/Controllers`
- [Authentication and roles](https://github.com/kristiyan9359/kiddocare/tree/main/KiddoCare.Web/Areas/Identity/Pages/Account): `KiddoCare.Web/Areas/Identity/Pages/Account`
- [Role dashboards](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/DashboardService.cs): `KiddoCare.Services.Core/DashboardService.cs`

### Care operations

- [Child profiles](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/ChildService.cs): `KiddoCare.Services.Core/ChildService.cs`
- [Groups and assignments](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/GroupService.cs): `KiddoCare.Services.Core/GroupService.cs`
- [Attendance](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/AttendanceService.cs): `KiddoCare.Services.Core/AttendanceService.cs`
- [Absence requests](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/AbsenceRequestService.cs): `KiddoCare.Services.Core/AbsenceRequestService.cs`
- [Daily care reports](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/DailyReportService.cs): `KiddoCare.Services.Core/DailyReportService.cs`
- [Medical records](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/MedicalRecordService.cs): `KiddoCare.Services.Core/MedicalRecordService.cs`
- [Consent requests](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/ConsentRequestService.cs): `KiddoCare.Services.Core/ConsentRequestService.cs`
- [Child documents](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/ChildDocumentService.cs): `KiddoCare.Services.Core/ChildDocumentService.cs`
- [Events and announcements](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/EventService.cs): `KiddoCare.Services.Core/EventService.cs`
- [Child activity feed](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/ActivityFeedService.cs): `KiddoCare.Services.Core/ActivityFeedService.cs`

### Communication

- [Private conversations](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Services.Core/MessageService.cs): `KiddoCare.Services.Core/MessageService.cs`
- [Real-time messaging hub](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Web/Hubs/MessageHub.cs): `KiddoCare.Web/Hubs/MessageHub.cs`

### Persistence and files

- [Protected local files](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Web/Services/LocalFileStorageService.cs): `KiddoCare.Web/Services/LocalFileStorageService.cs`
- [EF Core context](https://github.com/kristiyan9359/kiddocare/blob/main/KiddoCare.Data/ApplicationDbContext.cs): `KiddoCare.Data/ApplicationDbContext.cs`
- [Domain records](https://github.com/kristiyan9359/kiddocare/tree/main/KiddoCare.Data.Models): `KiddoCare.Data.Models`
- **SQL Server**

### Other components

- **Admin, teacher, parent**

## Connections

- Admin, teacher, parent → MVC controllers: use
- Admin, teacher, parent → Authentication and roles: sign in
- MVC controllers → Role dashboards: request dashboard
- MVC controllers → Child profiles: manage children (evidence: `KiddoCare.Web/Controllers/ChildrenController.cs`)
- MVC controllers → Child documents: manage documents (evidence: `KiddoCare.Web/Controllers/ChildDocumentsController.cs`)
- MVC controllers → Private conversations: manage conversations (evidence: `KiddoCare.Web/Controllers/MessagesController.cs`)
- MVC controllers → Real-time messaging hub: invoke hub (evidence: `KiddoCare.Web/Controllers/MessagesController.cs`)
- MVC controllers → Protected local files: store and retrieve files (evidence: `KiddoCare.Web/Controllers/ChildDocumentsController.cs`)
- MVC controllers → Attendance: manage attendance
- MVC controllers → Absence requests: review requests
- MVC controllers → Daily care reports: manage reports (evidence: `KiddoCare.Web/Controllers/DailyReportsController.cs`)
- MVC controllers → Medical records: manage health records
- MVC controllers → Consent requests: respond to consent
- MVC controllers → Groups and assignments: manage groups
- MVC controllers → Events and announcements: manage updates
- MVC controllers → Child activity feed: view activity
- Role dashboards → EF Core context: queries (evidence: `KiddoCare.Services.Core/DashboardService.cs`)
- Absence requests → EF Core context: reads and saves (evidence: `KiddoCare.Services.Core/AbsenceRequestService.cs`)
- Private conversations → EF Core context: reads and saves (evidence: `KiddoCare.Services.Core/MessageService.cs`)
- EF Core context → Domain records: maps records (evidence: `KiddoCare.Data/ApplicationDbContext.cs`)
- EF Core context → SQL Server: persists data
- Protected local files → Admin, teacher, parent: serves authorized files
