# riama23/wedding-web architecture

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

- Interactive diagram: https://gitdiagram.com/riama23/wedding-web
- Repository: https://github.com/riama23/wedding-web

## Overview

##### Main Components

a) Frontend Application Layer:
- Vue.js Application Container
- View Components (Home, LoveStory, RSVP, WeddingList, OtherInformation)
- Core Components (Header, Footer)
- State Management (Pinia Store)
- Router Layer
- Internationalization System

b) Build & Development Infrastructure:
- Vite Build System
- Docker Container
- CI/CD Pipeline (GitHub Actions)

**[Client Browser] → [Docker Container] → [Vue.js Application]**

- Presentation Layer
- Views (Pages)
- Components
- Application Layer
- Router
- Store (Pinia)
- Plugins
- Asset Layer
- Styles (SCSS/Tailwind)
- Images
- Localization

##### Important Elements to Highlight

a) Frontend Architecture:
- Vue.js component hierarchy
- Routing flow between views
- Demonstrate state management pattern
- Internationalization system flow

b) Build & Deployment:
- Docker containerization flow
- GitHub Actions workflow
- Development vs Production environments

##### Specific Implementation Details

- Vue 3 Application Core
- Vue Router with all defined routes
- Pinia Store modules
- Dayjs plugin integration
- Tailwind CSS + SCSS styling system
- i18n/Localization system
- Docker container configuration
- GitHub Actions workflow

##### The build and deployment pipeline ensuring reliable delivery

Remember to include version information for major dependencies and note any third-party integrations that may be relevant to the wedding website functionality.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        Browser["Web Browser"]
    end

    subgraph Infrastructure
        Docker["Docker Container"]:::infrastructure
        GHActions["GitHub Actions"]:::infrastructure
    end

    subgraph "Vue.js Application"
        App["App Container"]:::vue
        
        subgraph "Core Layer"
            Router["Vue Router"]:::core
            Store["Pinia Store"]:::core
            I18n["i18n System"]:::core
            DayJS["Dayjs Plugin"]:::core
        end
        
        subgraph "View Layer"
            Home["Home View"]:::view
            Love["Love Story View"]:::view
            RSVP["RSVP View"]:::view
            Wedding["Wedding List View"]:::view
            Other["Other Info View"]:::view
        end
        
        subgraph "Component Layer"
            Header["Header Menu"]:::component
            Footer["Footer Contact"]:::component
        end
        
        subgraph "Asset Layer"
            Styles["SCSS/Tailwind"]:::asset
            Images["Images"]:::asset
            Locales["Localization Files"]:::asset
        end
        
        subgraph "Build Tools"
            Vite["Vite"]:::build
            TypeScript["TypeScript"]:::build
            ESLint["ESLint"]:::build
            Prettier["Prettier"]:::build
            PostCSS["PostCSS"]:::build
            TailwindConfig["Tailwind Config"]:::build
        end
    end

    Browser --> Docker
    Docker --> App
    GHActions --> Docker
    
    App --> Router
    App --> Store
    App --> I18n
    App --> DayJS
    
    Router --> Home
    Router --> Love
    Router --> RSVP
    Router --> Wedding
    Router --> Other
    
    Home & Love & RSVP & Wedding & Other --> Header
    Home & Love & RSVP & Wedding & Other --> Footer
    
    I18n --> Locales
    App --> Styles
    App --> Images

    %% Click Events
    click App "https://github.com/riama23/wedding-web/blob/main/frontend/src/App.vue"
    click Home "https://github.com/riama23/wedding-web/blob/main/frontend/src/views/HomeView.vue"
    click Love "https://github.com/riama23/wedding-web/blob/main/frontend/src/views/LoveStoryView.vue"
    click RSVP "https://github.com/riama23/wedding-web/blob/main/frontend/src/views/RSVPView.vue"
    click Wedding "https://github.com/riama23/wedding-web/blob/main/frontend/src/views/WeddingListView.vue"
    click Other "https://github.com/riama23/wedding-web/blob/main/frontend/src/views/OtherInformationView.vue"
    click Header "https://github.com/riama23/wedding-web/blob/main/frontend/src/components/Header/HeaderMenu.vue"
    click Footer "https://github.com/riama23/wedding-web/blob/main/frontend/src/components/Footer/FooterContact.vue"
    click Store "https://github.com/riama23/wedding-web/blob/main/frontend/src/stores/counter.ts"
    click Router "https://github.com/riama23/wedding-web/blob/main/frontend/src/router/index.ts"
    click I18n "https://github.com/riama23/wedding-web/blob/main/frontend/src/locales/locales.ts"
    click Vite "https://github.com/riama23/wedding-web/blob/main/frontend/vite.config.ts"
    click Docker "https://github.com/riama23/wedding-web/tree/main/frontend/Dockerfile"
    click GHActions "https://github.com/riama23/wedding-web/blob/main/.github/workflows/docker-image.yml"
    click Styles "https://github.com/riama23/wedding-web/blob/main/frontend/src/assets/css/main.scss"
    click Images "https://github.com/riama23/wedding-web/tree/main/frontend/src/assets/images"
    click DayJS "https://github.com/riama23/wedding-web/blob/main/frontend/src/plugins/Dayjs.ts"
    click TypeScript "https://github.com/riama23/wedding-web/blob/main/frontend/tsconfig.json"
    click ESLint "https://github.com/riama23/wedding-web/blob/main/frontend/.eslintrc.cjs"
    click Prettier "https://github.com/riama23/wedding-web/blob/main/frontend/.prettierrc.json"
    click PostCSS "https://github.com/riama23/wedding-web/blob/main/frontend/postcss.config.js"
    click TailwindConfig "https://github.com/riama23/wedding-web/blob/main/frontend/tailwind.config.js"

    %% Styling
    classDef vue fill:#42b883,stroke:#35495e,color:white
    classDef core fill:#666AF6,stroke:#4F52C0,color:white
    classDef view fill:#41B883,stroke:#3AA876,color:white
    classDef component fill:#2C3E50,stroke:#1B2838,color:white
    classDef asset fill:#FFA07A,stroke:#FF8C66,color:white
    classDef build fill:#95A5A6,stroke:#7F8C8D,color:white
    classDef infrastructure fill:#E74C3C,stroke:#C0392B,color:white
```
