# iqgor/studie_salon architecture

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

- Interactive diagram: https://gitdiagram.com/iqgor/studie_salon
- Repository: https://github.com/iqgor/studie_salon

## Overview

##### Project type and purpose
- From the file tree and the minimal README (“studie_salon”), we see a classic full-stack web application:
- A “frontend” directory housing a Vue 3/Vite single-page application (SPA)
- A “backend” directory with PHP entry point (index.php), configuration (config.php), and PHPMailer for outbound mail
- Purpose inference: a “study salon” platform where users can view content, log in, subscribe, receive notifications or password resets via email.

##### File structure
- Top-level separation:
- frontend/ : Vue-based UI
- backend/  : PHP API & mailer
- frontend/ patterns:
- src/components, src/views → MVVM component and view structure
- src/router/index.js → client-side routing
- src/services/toastService.js → UI notification service
- assets/ → static JSON for quotes, subjects, carousel; CSS and audio assets
- vite.config.js, package.json → build tooling and dependencies
- backend/ patterns:
- index.php → request entry point (likely acts as a simple router or API handler)
- config.php → connection parameters (DB credentials, SMTP settings)
- PHPMailer library → encapsulates SMTP/OAuth email functionality
- .htaccess → URL rewriting or access control

##### README for architecture hints
- README only defines project name; no additional architecture notes.
- Rely on file structure to infer layers: UI (Vue), API (PHP), persistence (DB?), email service (SMTP).

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Swimlanes
    subgraph "Client Side"
        direction TB
        Browser["Browser"]:::external
        IndexHTML["index.html"]:::frontend
        VueSPA["Vue SPA"]:::frontend
        MainJS["main.js"]:::frontend
        Router["router/index.js"]:::frontend
        Views["src/views/"]:::frontend
        Components["src/components/"]:::frontend
        ToastService["toastService.js"]:::frontend
        SharedFuncs["sharedFunctions.js"]:::frontend
        AuthHelper["auth.js"]:::frontend
        Assets["src/assets/"]:::frontend
        ViteConfig["vite.config.js"]:::frontend
        PackageJSON["package.json"]:::frontend
    end

    subgraph "Server Side"
        direction TB
        WebServer["Web Server<br/>(Apache/Nginx)"]:::backend
        HTAccess[".htaccess"]:::backend
        IndexPHP["index.php"]:::backend
        ConfigPHP["config.php"]:::backend
        BusinessLogic["Business Logic"]:::backend
        PHPMailer["PHPMailer Library"]:::backend
        Database["MySQL/PostgreSQL"]:::database
        SMTP["SMTP Server"]:::external
    end

    %% Client to Server
    Browser -->|"HTTP(S) Requests"| WebServer
    WebServer --> HTAccess
    WebServer --> IndexPHP
    Browser --> IndexHTML
    IndexHTML --> VueSPA
    VueSPA --> MainJS
    MainJS --> Router
    Router --> Views
    Views --> Components
    Components --> ToastService
    Components --> SharedFuncs
    Components --> AuthHelper
    VueSPA -->|"Fetch JSON/Assets"| Assets

    %% Server internals
    IndexPHP --> ConfigPHP
    IndexPHP --> BusinessLogic
    BusinessLogic --> Database
    BusinessLogic --> PHPMailer
    PHPMailer -->|"SMTP / OAuth"| SMTP

    %% Click Events
    click VueSPA "https://github.com/iqgor/studie_salon/tree/main/frontend/"
    click IndexHTML "https://github.com/iqgor/studie_salon/blob/main/frontend/index.html"
    click ViteConfig "https://github.com/iqgor/studie_salon/blob/main/frontend/vite.config.js"
    click PackageJSON "https://github.com/iqgor/studie_salon/blob/main/frontend/package.json"
    click MainJS "https://github.com/iqgor/studie_salon/blob/main/frontend/src/main.js"
    click Router "https://github.com/iqgor/studie_salon/blob/main/frontend/src/router/index.js"
    click Views "https://github.com/iqgor/studie_salon/tree/main/frontend/src/views/"
    click Components "https://github.com/iqgor/studie_salon/tree/main/frontend/src/components/"
    click ToastService "https://github.com/iqgor/studie_salon/blob/main/frontend/src/services/toastService.js"
    click SharedFuncs "https://github.com/iqgor/studie_salon/blob/main/frontend/src/sharedFunctions.js"
    click AuthHelper "https://github.com/iqgor/studie_salon/blob/main/frontend/src/auth.js"
    click Assets "https://github.com/iqgor/studie_salon/tree/main/frontend/src/assets/"
    click IndexPHP "https://github.com/iqgor/studie_salon/blob/main/backend/index.php"
    click ConfigPHP "https://github.com/iqgor/studie_salon/blob/main/backend/config.php"
    click PHPMailer "https://github.com/iqgor/studie_salon/tree/main/backend/PHPMailer/src/"
    click HTAccess "https://github.com/iqgor/studie_salon/blob/main/backend/.htaccess"

    %% Styles
    classDef frontend fill:#D0E6FF,stroke:#0366d6,color:#000;
    classDef backend fill:#DFFFE0,stroke:#2e8b57,color:#000;
    classDef database fill:#FFE5B4,stroke:#FF8C00,color:#000;
    classDef external fill:#FFEFD5,stroke:#DAA520,color:#000;
```
