# ehbfilmworks/idpa architecture

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

- Interactive diagram: https://gitdiagram.com/ehbfilmworks/idpa
- Repository: https://github.com/ehbfilmworks/idpa

## Overview

##### Main Components
- Frontend Application: This includes all source code in the src directory (App.vue, Vue components, views, router configuration, and stylesheets in assets).
- Routing & Views: Clearly denote the use of vue-router as indicated by the src/router directory and various view components (home.vue, contact.vue, drone.vue, projects.vue, etc.).
- Static Assets & Styles: Identify assets such as SCSS files, images, and videos (both within src/assets and in the dist folder).
- Build & Deployment: Include the build configuration file (vite.config.js) and the deployment workflow located in .github/workflows/deploy.yml, which defines CI/CD for the deployment process.

##### Out the Relationships and Data Flow
- Central Frontend Application as the core component.
- Application to its sub-components:
- The Router, which dynamically loads various view components based on user navigation (for example, DetailViews like meggen.vue and palace.vue, and other pages such as home.vue, contact.vue, info.vue, offer.vue, and projects.vue).
- The Vue components (like footer.vue, navigation.vue) that support UI elements present in multiple views.
- Static asset handling: highlight that the assets (video files, SCSS) are compiled/bundled by Vite and then injected into the final build output in the dist folder.
- Deployment pipeline: from code commits to GitHub Actions that deploy the latest build (as indicated by deploy.yml).

##### Architectural Patterns and Design Principles
- Component-Based Architecture: Show that the project uses Vue’s component-based structure, with separation of concerns between UI components, routing logic, and application state (if any).
- Single-Page Application (SPA) Structure: Emphasize how the router manages view transitions without full page reloads.
- Build and Deployment Automation: Note the use of Vite for rapid builds and GitHub Actions for CI/CD pipelines, ensuring that changes are automatically built and deployed.

##### Relevant Technologies & Tools
- Vue.js: For constructing the UI and component interactions.
- Vite: For bundling and build-time optimizations.
- SCSS: For styling components, with various SCSS files in assets.
- GitHub Actions: For automating build and deployment workflows.

## Diagram (Mermaid)

```mermaid
graph TB
    %% User Interaction
    user["User"]:::user

    %% Frontend Application (Vue SPA)
    subgraph "Frontend Application (Vue SPA)"
        App["Vue SPA Application (src)"]:::app
        Router["Router (vue-router, src/router)"]:::router
        Views["Views (src/views)"]:::views
        Components["UI Components"]:::components
        Navigation["Navigation Component"]:::component
        Footer["Footer Component"]:::component
        Assets["Static Assets & Styles (src/assets)"]:::assets
        Compiled["Compiled Assets (dist/assets)"]:::compiled
    end

    %% Build & Deployment Pipeline
    subgraph "Build & Deployment Pipeline"
        Build["Build Process (Vite)"]:::build
        Deploy["Deployment (GitHub Actions)"]:::deploy
    end

    %% Relationships
    user -->|"interacts"| App
    App -->|"uses"| Router
    App -->|"includes"| Components
    App -->|"loads"| Assets
    Router -->|"renders"| Views
    Components -->|"has"| Navigation
    Components -->|"has"| Footer
    Assets -->|"bundledByVite"| Compiled
    Assets -->|"processedBy"| Build
    Build -->|"generates"| Compiled
    Build -->|"triggers"| Deploy

    %% Click Events
    click App "https://github.com/ehbfilmworks/idpa/tree/main/src/"
    click Router "https://github.com/ehbfilmworks/idpa/blob/main/src/router/index.js"
    click Views "https://github.com/ehbfilmworks/idpa/tree/main/src/views/"
    click Navigation "https://github.com/ehbfilmworks/idpa/blob/main/src/components/navigation.vue"
    click Footer "https://github.com/ehbfilmworks/idpa/blob/main/src/components/footer.vue"
    click Assets "https://github.com/ehbfilmworks/idpa/tree/main/src/assets/"
    click Compiled "https://github.com/ehbfilmworks/idpa/tree/main/dist/assets/"
    click Build "https://github.com/ehbfilmworks/idpa/blob/main/vite.config.js"
    click Deploy "https://github.com/ehbfilmworks/idpa/blob/main/.github/workflows/deploy.yml"

    %% Styles
    classDef user fill:#f9d5a7,stroke:#333,stroke-width:2px;
    classDef app fill:#bbdef0,stroke:#333,stroke-width:2px;
    classDef router fill:#c8e6c9,stroke:#333,stroke-width:2px;
    classDef views fill:#d1c4e9,stroke:#333,stroke-width:2px;
    classDef components fill:#ffe0b2,stroke:#333,stroke-width:2px;
    classDef component fill:#ffccbc,stroke:#333,stroke-width:2px;
    classDef assets fill:#dcedc8,stroke:#333,stroke-width:2px;
    classDef compiled fill:#b3e5fc,stroke:#333,stroke-width:2px;
    classDef build fill:#fff9c4,stroke:#333,stroke-width:2px;
    classDef deploy fill:#f8bbd0,stroke:#333,stroke-width:2px;
```
