# xantilon/klassenplaner architecture

> Architecture diagram of the GitHub repository xantilon/klassenplaner, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/xantilon/klassenplaner
- Repository: https://github.com/xantilon/klassenplaner

## Overview

##### Project Type Analysis
This is a web application built using ASP.NET Core with Razor Pages architecture, designed to manage and share class schedules. It's a single-tier web application with a focus on frontend functionality and user interaction.

##### Main Components

A. Client Layer:
- Web Browsers (Desktop/Mobile)
- Static Assets (CSS, JavaScript, Images)
- Client-side Libraries (jQuery, Bootstrap)

B. Application Layer:
- Razor Pages Components
- Shared Layouts and Partials
- Authentication/Authorization
- Application Insights Integration

C. Data Layer (to be implemented):
- Schedule Storage
- User Data Storage

**[Client Layer]**
- ↕
**[Application Layer]**
- ↕
**[Data Layer]**

##### Detailed Component Breakdown

Client Layer (Blue):
**┌─ Web Browsers ─┐**
- Desktop      │
- Mobile       │
- ┘
- ↕
**┌─ Static Assets ─┐**
- Bootstrap    │
- jQuery       │
- Custom CSS/JS│
- ┘

Application Layer (Green):
**┌─ Razor Pages ──┐    ┌─ Shared Components ┐**
- Index        │←→  │ - _Layout         │
- About        │    │ - _LoginPartial   │
- Contact      │    │ - Cookie Consent  │
- Privacy      │    └──────────────────┘
- ┘

Data Layer (Orange):
**┌─ Data Storage ─┐**
- Schedules    │
- User Data    │
- ┘

##### Important Elements to Highlight

- Authentication Flow:
Interaction between _LoginPartial and the authentication system

- Schedule Management Flow:
How schedule data moves from input to storage to sharing

- Application Insights Integration:
Monitoring and analytics data flow

##### Technical Details

- ASP.NET Core framework version
- Client-side library versions (Bootstrap, jQuery)
- Application Insights integration points
- Browser compatibility requirements

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        Browser["Web Browsers"]:::client
        Desktop["Desktop"]:::client
        Mobile["Mobile"]:::client
        Browser --> Desktop
        Browser --> Mobile
        
        StaticAssets["Static Assets"]:::client
        click StaticAssets "https://github.com/xantilon/klassenplaner/tree/master/Klassenplaner/wwwroot"
        
        ClientLibs["Client Libraries"]:::client
        Bootstrap["Bootstrap"]:::client
        click Bootstrap "https://github.com/xantilon/klassenplaner/tree/master/Klassenplaner/wwwroot/lib/bootstrap"
        jQuery["jQuery"]:::client
        click jQuery "https://github.com/xantilon/klassenplaner/tree/master/Klassenplaner/wwwroot/lib/jquery"
        jQueryVal["jQuery Validation"]:::client
        click jQueryVal "https://github.com/xantilon/klassenplaner/tree/master/Klassenplaner/wwwroot/lib/jquery-validation"
        
        CustomAssets["Custom Assets"]:::client
        CustomCSS["Custom CSS"]:::client
        click CustomCSS "https://github.com/xantilon/klassenplaner/blob/master/Klassenplaner/wwwroot/css/site.css"
        CustomJS["Custom JavaScript"]:::client
        click CustomJS "https://github.com/xantilon/klassenplaner/blob/master/Klassenplaner/wwwroot/js/site.js"
        
        ClientLibs --> Bootstrap
        ClientLibs --> jQuery
        ClientLibs --> jQueryVal
        
        CustomAssets --> CustomCSS
        CustomAssets --> CustomJS
        
        StaticAssets --> ClientLibs
        StaticAssets --> CustomAssets
    end
    
    subgraph Application
        CoreComponents["Core Components"]:::app
        Program["Program Entry"]:::app
        click Program "https://github.com/xantilon/klassenplaner/blob/master/Klassenplaner/Program.cs"
        Startup["Application Config"]:::app
        click Startup "https://github.com/xantilon/klassenplaner/blob/master/Klassenplaner/Startup.cs"
        Settings["Settings"]:::app
        click Settings "https://github.com/xantilon/klassenplaner/blob/master/Klassenplaner/appsettings.json"
        
        CoreComponents --> Program
        CoreComponents --> Startup
        CoreComponents --> Settings
        
        RazorPages["Razor Pages"]:::app
        click RazorPages "https://github.com/xantilon/klassenplaner/tree/master/Klassenplaner/Pages"
        Index["Index Page"]:::app
        click Index "https://github.com/xantilon/klassenplaner/blob/master/Klassenplaner/Pages/Index.cshtml"
        About["About Page"]:::app
        click About "https://github.com/xantilon/klassenplaner/blob/master/Klassenplaner/Pages/About.cshtml"
        Contact["Contact Page"]:::app
        click Contact "https://github.com/xantilon/klassenplaner/blob/master/Klassenplaner/Pages/Contact.cshtml"
        Privacy["Privacy Page"]:::app
        click Privacy "https://github.com/xantilon/klassenplaner/blob/master/Klassenplaner/Pages/Privacy.cshtml"
        
        RazorPages --> Index
        RazorPages --> About
        RazorPages --> Contact
        RazorPages --> Privacy
        
        SharedComponents["Shared Components"]:::app
        Layout["Layout"]:::app
        click Layout "https://github.com/xantilon/klassenplaner/blob/master/Klassenplaner/Pages/Shared/_Layout.cshtml"
        LoginPartial["Login Partial"]:::app
        click LoginPartial "https://github.com/xantilon/klassenplaner/blob/master/Klassenplaner/Pages/Shared/_LoginPartial.cshtml"
        CookieConsent["Cookie Consent"]:::app
        click CookieConsent "https://github.com/xantilon/klassenplaner/blob/master/Klassenplaner/Pages/Shared/_CookieConsentPartial.cshtml"
        
        SharedComponents --> Layout
        SharedComponents --> LoginPartial
        SharedComponents --> CookieConsent
        
        AppInsights["Application Insights"]:::monitoring
        click AppInsights "https://github.com/xantilon/klassenplaner/blob/master/Klassenplaner/Connected Services/Application Insights/ConnectedService.json"
    end
    
    subgraph Data
        Storage["Data Storage"]:::data
        Schedules["Schedules"]:::data
        UserData["User Data"]:::data
        
        Storage --> Schedules
        Storage --> UserData
    end
    
    Browser --> StaticAssets
    Browser --> RazorPages
    RazorPages --> SharedComponents
    RazorPages --> Storage
    CoreComponents --> AppInsights
    
    classDef client fill:#3498db,stroke:#2980b9,color:#fff
    classDef app fill:#2ecc71,stroke:#27ae60,color:#fff
    classDef data fill:#e67e22,stroke:#d35400,color:#fff
    classDef monitoring fill:#95a5a6,stroke:#7f8c8d,color:#fff
```
