# spinepith/studentaccounttstu architecture

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

- Interactive diagram: https://gitdiagram.com/spinepith/studentaccounttstu
- Repository: https://github.com/spinepith/studentaccounttstu

## Overview

ЛКС ТГТУ is a cross-platform student account client for authenticated access to personal and academic information. The main flow is platform startup into the shared app, login, then navigation to profile, lessons and marks, schedule, gradebook, and group-rating views. Settings and saved data support customization and cached access; browser storage and HTTP proxy behavior adapt the shared client for web use. Several domain view models are indexed or named but not excerpted, so their internal API calls and view bindings are not inferred here.

Main entry points: [`StudentAccountTSTU/App.axaml.cs`](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/App.axaml.cs) (App composition), [`StudentAccountTSTU/ViewModels/MainViewModel.cs`](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/MainViewModel.cs) (Main navigation), [`StudentAccountTSTU/Services/Storage/FileStorage.cs`](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/Services/Storage/FileStorage.cs) (Storage facade), [`StudentAccountTSTU/ViewModels/HomeViewModel.cs`](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/HomeViewModel.cs) (Home dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["App platforms"]
  node_mobile["Android and iOS<br/>[Application.cs]"]
  node_desktop["Desktop app<br/>[Program.cs]"]
  node_browser["Browser app<br/>[Program.cs]"]
end

subgraph group_flow["Navigation and access"]
  node_app["App composition<br/>[App.axaml.cs]"]
  node_main["Main navigation<br/>[MainViewModel.cs]"]
  node_login["Login<br/>[LoginViewModel.cs]"]
  node_home["Home dashboard<br/>[HomeViewModel.cs]"]
end

subgraph group_academics["Academic information"]
  node_profile["Personal data"]
  node_lessons["Lessons and marks"]
  node_marks["Discipline marks<br/>[MarksViewModel.cs]"]
  node_schedule["Schedule"]
  node_report["Gradebook"]
  node_groups["Groups<br/>[GroupsViewModel.cs]"]
  node_rating["Student rating<br/>[RatingViewModel.cs]"]
end

subgraph group_support["Settings and persistence"]
  node_settingsvm["Settings pages"]
  node_settings["User settings<br/>[Settings.cs]"]
  node_profile_store["Profile store"]
  node_storage["Storage facade<br/>[FileStorage.cs]"]
  node_local_storage[("Local file storage")]
  node_browser_storage[("Browser storage<br/>[BrowserStorage.cs]")]
  node_http["HTTP service<br/>[HttpService.cs]"]
  node_webaccount["Student account API client"]
end

node_student(("Student"))
node_university["TSTU account service"]

node_student -->|"launches"| node_mobile
node_student -->|"launches"| node_desktop
node_student -->|"opens"| node_browser
node_mobile -->|"starts"| node_app
node_desktop -.->|"starts"| node_app
node_browser -.->|"starts"| node_app
node_app -->|"creates"| node_main
node_app -->|"registers"| node_http
node_app -->|"loads"| node_settings
node_app -->|"registers"| node_profile_store
node_main -->|"opens"| node_login
node_main -->|"navigates"| node_home
node_main -->|"navigates"| node_profile
node_main -->|"navigates"| node_lessons
node_main -->|"navigates"| node_schedule
node_main -->|"navigates"| node_report
node_main -->|"navigates"| node_groups
node_home -->|"opens"| node_settingsvm
node_home -->|"selects group"| node_rating
node_lessons -->|"uses"| node_marks
node_groups -->|"uses"| node_rating
node_login -.->|"authenticates"| node_webaccount
node_webaccount -.->|"sends requests"| node_http
node_http -.->|"requests account data"| node_university
node_app -->|"constructs"| node_webaccount
node_app -->|"constructs"| node_profile_store
node_settingsvm -->|"updates"| node_settings
node_settingsvm -->|"removes saved data"| node_storage
node_storage -->|"dispatches"| node_local_storage
node_storage -->|"dispatches"| node_browser_storage
node_settings -->|"persists browser settings"| node_browser_storage
node_profile_store -->|"uses"| node_storage
node_home -->|"reads cached images"| node_storage

click node_mobile "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU.Android/Application.cs"
click node_desktop "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU.Desktop/Program.cs"
click node_browser "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU.Browser/Program.cs"
click node_app "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/App.axaml.cs"
click node_main "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/MainViewModel.cs"
click node_login "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/LoginViewModel.cs"
click node_home "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/HomeViewModel.cs"
click node_profile "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/UserDataViewModel.cs"
click node_lessons "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/LessonsViewModel.cs"
click node_marks "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/MarksViewModel.cs"
click node_schedule "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/ScheduleViewModel.cs"
click node_report "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/ReportCardViewModel.cs"
click node_groups "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/GroupsViewModel.cs"
click node_rating "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/RatingViewModel.cs"
click node_settingsvm "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/SettingsViewModels/SettingsViewModel.cs"
click node_settings "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/Services/Settings.cs"
click node_profile_store "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/Stores/StudentProfileStore.cs"
click node_storage "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/Services/Storage/FileStorage.cs"
click node_local_storage "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/Services/Storage/LocalFileStorage.cs"
click node_browser_storage "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/Services/Storage/BrowserStorage.cs"
click node_http "https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/Services/HttpService.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_mobile,node_desktop,node_browser toneBlue
class node_app,node_main,node_login,node_home toneAmber
class node_profile,node_lessons,node_marks,node_schedule,node_report,node_groups,node_rating toneMint
class node_settingsvm,node_settings,node_profile_store,node_storage,node_local_storage,node_browser_storage,node_http,node_webaccount toneRose
class node_student,node_university toneIndigo
```

## Components

### App platforms

- [Android and iOS](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU.Android/Application.cs): `StudentAccountTSTU.Android/Application.cs`
- [Desktop app](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU.Desktop/Program.cs): `StudentAccountTSTU.Desktop/Program.cs`
- [Browser app](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU.Browser/Program.cs): `StudentAccountTSTU.Browser/Program.cs`

### Navigation and access

- [App composition](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/App.axaml.cs): `StudentAccountTSTU/App.axaml.cs`
- [Main navigation](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/MainViewModel.cs): `StudentAccountTSTU/ViewModels/MainViewModel.cs`
- [Login](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/LoginViewModel.cs): `StudentAccountTSTU/ViewModels/LoginViewModel.cs`
- [Home dashboard](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/HomeViewModel.cs): `StudentAccountTSTU/ViewModels/HomeViewModel.cs`

### Academic information

- [Personal data](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/UserDataViewModel.cs): `StudentAccountTSTU/ViewModels/UserDataViewModel.cs`
- [Lessons and marks](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/LessonsViewModel.cs): `StudentAccountTSTU/ViewModels/LessonsViewModel.cs`
- [Discipline marks](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/MarksViewModel.cs): `StudentAccountTSTU/ViewModels/MarksViewModel.cs`
- [Schedule](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/ScheduleViewModel.cs): `StudentAccountTSTU/ViewModels/ScheduleViewModel.cs`
- [Gradebook](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/ReportCardViewModel.cs): `StudentAccountTSTU/ViewModels/ReportCardViewModel.cs`
- [Groups](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/GroupsViewModel.cs): `StudentAccountTSTU/ViewModels/GroupsViewModel.cs`
- [Student rating](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/RatingViewModel.cs): `StudentAccountTSTU/ViewModels/RatingViewModel.cs`

### Settings and persistence

- [Settings pages](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/ViewModels/SettingsViewModels/SettingsViewModel.cs): `StudentAccountTSTU/ViewModels/SettingsViewModels/SettingsViewModel.cs`
- [User settings](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/Services/Settings.cs): `StudentAccountTSTU/Services/Settings.cs`
- [Profile store](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/Stores/StudentProfileStore.cs): `StudentAccountTSTU/Stores/StudentProfileStore.cs`
- [Storage facade](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/Services/Storage/FileStorage.cs): `StudentAccountTSTU/Services/Storage/FileStorage.cs`
- [Local file storage](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/Services/Storage/LocalFileStorage.cs): `StudentAccountTSTU/Services/Storage/LocalFileStorage.cs`
- [Browser storage](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/Services/Storage/BrowserStorage.cs): `StudentAccountTSTU/Services/Storage/BrowserStorage.cs`
- [HTTP service](https://github.com/spinepith/studentaccounttstu/blob/main/StudentAccountTSTU/Services/HttpService.cs): `StudentAccountTSTU/Services/HttpService.cs`
- **Student account API client**

### Other components

- **Student**
- **TSTU account service**

## Connections

- Student → Android and iOS: launches (evidence: `README.md`)
- Student → Desktop app: launches (evidence: `README.md`)
- Student → Browser app: opens (evidence: `README.md`)
- Android and iOS → App composition: starts (evidence: `StudentAccountTSTU.Android/Application.cs`)
- Desktop app → App composition: starts
- Browser app → App composition: starts
- App composition → Main navigation: creates (evidence: `StudentAccountTSTU/App.axaml.cs`)
- App composition → HTTP service: registers (evidence: `StudentAccountTSTU/App.axaml.cs`)
- App composition → User settings: loads (evidence: `StudentAccountTSTU/App.axaml.cs`)
- App composition → Profile store: registers (evidence: `StudentAccountTSTU/App.axaml.cs`)
- Main navigation → Login: opens (evidence: `StudentAccountTSTU/ViewModels/MainViewModel.cs`)
- Main navigation → Home dashboard: navigates (evidence: `StudentAccountTSTU/ViewModels/MainViewModel.cs`)
- Main navigation → Personal data: navigates (evidence: `StudentAccountTSTU/ViewModels/MainViewModel.cs`)
- Main navigation → Lessons and marks: navigates (evidence: `StudentAccountTSTU/ViewModels/MainViewModel.cs`)
- Main navigation → Schedule: navigates (evidence: `StudentAccountTSTU/ViewModels/MainViewModel.cs`)
- Main navigation → Gradebook: navigates (evidence: `StudentAccountTSTU/ViewModels/MainViewModel.cs`)
- Main navigation → Groups: navigates (evidence: `StudentAccountTSTU/ViewModels/MainViewModel.cs`)
- Home dashboard → Settings pages: opens (evidence: `StudentAccountTSTU/ViewModels/HomeViewModel.cs`)
- Home dashboard → Student rating: selects group (evidence: `StudentAccountTSTU/ViewModels/HomeViewModel.cs`)
- Lessons and marks → Discipline marks: uses (evidence: `StudentAccountTSTU/ViewModels/LessonsViewModel.cs`)
- Groups → Student rating: uses (evidence: `StudentAccountTSTU/ViewModels/GroupsViewModel.cs`)
- Login → Student account API client: authenticates
- Student account API client → HTTP service: sends requests
- HTTP service → TSTU account service: requests account data
- App composition → Student account API client: constructs (evidence: `StudentAccountTSTU/App.axaml.cs`)
- App composition → Profile store: constructs (evidence: `StudentAccountTSTU/App.axaml.cs`)
- Settings pages → User settings: updates (evidence: `StudentAccountTSTU/ViewModels/SettingsViewModels/SettingsViewModel.cs`)
- Settings pages → Storage facade: removes saved data (evidence: `StudentAccountTSTU/ViewModels/SettingsViewModels/SettingsViewModel.cs`)
- Storage facade → Local file storage: dispatches (evidence: `StudentAccountTSTU/Services/Storage/FileStorage.cs`)
- Storage facade → Browser storage: dispatches (evidence: `StudentAccountTSTU/Services/Storage/FileStorage.cs`)
- User settings → Browser storage: persists browser settings (evidence: `StudentAccountTSTU/Services/Settings.cs`)
- Profile store → Storage facade: uses (evidence: `StudentAccountTSTU/Stores/StudentProfileStore.cs`)
- Home dashboard → Storage facade: reads cached images (evidence: `StudentAccountTSTU/ViewModels/HomeViewModel.cs`)
