# pangyo-coffee-legends/booking-service architecture

> Architecture diagram of the GitHub repository pangyo-coffee-legends/booking-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/pangyo-coffee-legends/booking-service
- Repository: https://github.com/pangyo-coffee-legends/booking-service

## Overview

##### Project type and purpose
- From the file tree and pom.xml we see a single Maven-based Java project following Spring Boot conventions.
- The only top-level source is under src/main/java/com/nhnacademy/bookingservice, and there are environment-specific application-*.properties.
- The minimal README (“booking-service”) plus its package name imply this is a standalone backend microservice (likely a REST API) responsible for handling booking logic.

##### File structure
- Top-level:
- pom.xml + .mvn/ & mvnw : a Maven wrapper project
- src/main/java/com/nhnacademy/bookingservice : service entrypoint (BookingServiceApplication.java)
- src/main/resources/application[-dev|prod].properties : environment configuration
- No “frontend” folder—this is purely a backend service.
- Tests mirror the production code under src/test/java, so unit/integration tests are in place.
- The absence of messaging or multiple modules suggests a single-bounded context microservice.

##### README for additional insights
- The README only provides the project title; no architecture or tech-stack details beyond what we infer from the structure.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Runtime Architecture
    subgraph "Runtime Architecture"
        Client["Client"]:::external
        subgraph "BookingService Application"
            Controller["Controller Layer"]:::api
            Service["Service Layer"]:::service
            Repository["Repository Layer"]:::data
        end
        Database["Database"]:::data
        External["External Services"]:::external

        Client -->|REST/JSON| Controller
        Controller -->|calls business logic| Service
        Service -->|CRUD operations| Repository
        Repository -->|JDBC| Database
        Service -->|REST/JSON| External
    end

    %% Project Structure
    subgraph "Project Structure"
        Entry["BookingServiceApplication.java"]:::code
        AppDev["application-dev.properties"]:::code
        AppProd["application-prod.properties"]:::code
        AppDefault["application.properties"]:::code
        Tests["BookingServiceApplicationTests.java"]:::code
        TestRes["application-test.properties"]:::code
        Pom["pom.xml"]:::code
        Wrapper["maven-wrapper.properties"]:::code
        CI["maven.yml"]:::code
        IssueFeat["✨-feature-request.md"]:::code
        IssueBug["🐞-bug.md"]:::code
        IssueFix["🔧-fix.md"]:::code
        IssueDeploy["🚀-deploy.md"]:::code
    end

    %% Click Events
    click Entry "https://github.com/pangyo-coffee-legends/booking-service/blob/main/src/main/java/com/nhnacademy/bookingservice/BookingServiceApplication.java"
    click AppDev "https://github.com/pangyo-coffee-legends/booking-service/blob/main/src/main/resources/application-dev.properties"
    click AppProd "https://github.com/pangyo-coffee-legends/booking-service/blob/main/src/main/resources/application-prod.properties"
    click AppDefault "https://github.com/pangyo-coffee-legends/booking-service/blob/main/src/main/resources/application.properties"
    click Tests "https://github.com/pangyo-coffee-legends/booking-service/blob/main/src/test/java/com/nhnacademy/bookingservice/BookingServiceApplicationTests.java"
    click TestRes "https://github.com/pangyo-coffee-legends/booking-service/blob/main/src/test/java/com/nhnacademy/bookingservice/resources/application-test.properties"
    click Pom "https://github.com/pangyo-coffee-legends/booking-service/blob/main/pom.xml"
    click Wrapper "https://github.com/pangyo-coffee-legends/booking-service/blob/main/.mvn/wrapper/maven-wrapper.properties"
    click CI "https://github.com/pangyo-coffee-legends/booking-service/blob/main/.github/workflows/maven.yml"
    click IssueFeat "https://github.com/pangyo-coffee-legends/booking-service/blob/main/.github/ISSUE_TEMPLATE/✨-feature-request.md"
    click IssueBug "https://github.com/pangyo-coffee-legends/booking-service/blob/main/.github/ISSUE_TEMPLATE/🐞-bug.md"
    click IssueFix "https://github.com/pangyo-coffee-legends/booking-service/blob/main/.github/ISSUE_TEMPLATE/🔧-fix.md"
    click IssueDeploy "https://github.com/pangyo-coffee-legends/booking-service/blob/main/.github/ISSUE_TEMPLATE/🚀-deploy.md"

    %% Styles
    classDef api fill:#AED6F1,stroke:#2980B9,color:#154360
    classDef service fill:#ABEBC6,stroke:#27AE60,color:#145A32
    classDef data fill:#F9E79F,stroke:#D4AC0D,color:#7D6608
    classDef external fill:#D5D8DC,stroke:#566573,color:#1C2833
    classDef code fill:#E8DAEF,stroke:#8E44AD,color:#4A235A
```
