# nhnacademy-aiot2-lucky7/dashboard-service architecture

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

- Interactive diagram: https://gitdiagram.com/nhnacademy-aiot2-lucky7/dashboard-service
- Repository: https://github.com/nhnacademy-aiot2-lucky7/dashboard-service

## Overview

##### Project type and purpose
- This is a single-module Java Spring Boot “dashboard-service” built with Maven.
- It serves as a backend microservice (likely providing REST endpoints for a dashboard UI or other consumers).

##### File structure
- Top-level artifacts:
- pom.xml / .mvn / mvnw – Maven build and wrapper
- src/main/java/com/nhnacademy/dashboard/DashboardApplication.java – Spring Boot entry point
- src/main/resources/application.properties – service configuration
- src/test/java/… – unit/integration tests
- No separate “frontend” or “common” modules—this is a standalone backend service.
- Standard layered-architecture hints: controllers/services/repositories likely under com.nhnacademy.dashboard (even if not explicitly shown).

##### README
- It only names the project (“dashboard-service”), confirming no extra sub-services declared here.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% External Clients
    subgraph "API & Clients"
        direction TB
        WebApp["Web App"]:::external
        MobileApp["Mobile App"]:::external
    end

    %% API Gateway / Load Balancer
    APIGW["API Gateway / Load Balancer"]:::infra

    WebApp -->|HTTP| APIGW
    MobileApp -->|HTTP| APIGW

    %% Dashboard Service Layers
    subgraph "Dashboard Service"
        direction TB
        EntryPoint["Spring Boot Entry Point"]:::backend
        Controller["REST Controller Layer"]:::backend
        ServiceLayer["Service Layer (Business Logic)"]:::backend
        Repository["Repository Layer (Data Access)"]:::backend
    end

    APIGW -->|forwards requests| EntryPoint
    EntryPoint -->|initializes| Controller
    Controller -->|calls| ServiceLayer
    ServiceLayer -->|uses| Repository

    Database[(Database)]:::database
    Repository -->|queries| Database

    %% Configuration
    Config["application.properties"]:::config
    Config -->|provides config| EntryPoint

    %% CI/CD Pipeline
    subgraph "CI/CD Pipeline"
        direction TB
        WrapperUNIX["mvnw"]:::tool
        WrapperWIN["mvnw.cmd"]:::tool
        WrapperProps[".mvn/wrapper/maven-wrapper.properties"]:::tool
        MavenBuild["Maven Build (pom.xml)"]:::tool
        Tests["JUnit Tests"]:::tool
        Package["Package JAR"]:::tool
        Deploy["Deploy to Environment"]:::tool
    end

    WrapperUNIX --> MavenBuild
    WrapperWIN --> MavenBuild
    WrapperProps --> MavenBuild
    MavenBuild -->|runs| Tests
    Tests -->|if success| Package
    Package -->|deploys| Deploy

    Deploy -->|starts| EntryPoint

    %% Click Events
    click EntryPoint "https://github.com/nhnacademy-aiot2-lucky7/dashboard-service/blob/main/src/main/java/com/nhnacademy/dashboard/DashboardApplication.java"
    click Config "https://github.com/nhnacademy-aiot2-lucky7/dashboard-service/blob/main/src/main/resources/application.properties"
    click MavenBuild "https://github.com/nhnacademy-aiot2-lucky7/dashboard-service/blob/main/pom.xml"
    click WrapperUNIX "https://github.com/nhnacademy-aiot2-lucky7/dashboard-service/tree/main/mvnw"
    click WrapperWIN "https://github.com/nhnacademy-aiot2-lucky7/dashboard-service/blob/main/mvnw.cmd"
    click WrapperProps "https://github.com/nhnacademy-aiot2-lucky7/dashboard-service/blob/main/.mvn/wrapper/maven-wrapper.properties"
    click Tests "https://github.com/nhnacademy-aiot2-lucky7/dashboard-service/blob/main/src/test/java/com/nhnacademy/dashboard/DashboardApplicationTests.java"

    %% Styles
    classDef external fill:#FFD5E5,stroke:#D6336C,stroke-width:1px;
    classDef infra fill:#CCEEFF,stroke:#3399CC,stroke-width:1px;
    classDef backend fill:#E5FFCC,stroke:#66CC33,stroke-width:1px;
    classDef database fill:#FFEECC,stroke:#CC9933,stroke-width:1px;
    classDef config fill:#F0E6FF,stroke:#9933CC,stroke-width:1px;
    classDef tool fill:#FFF4CC,stroke:#CCCC33,stroke-width:1px;
    classDef runtime fill:#CCFFEA,stroke:#33CC88,stroke-width:1px;
```
