# medinar/full-stack-spring-boot-react architecture

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

- Interactive diagram: https://gitdiagram.com/medinar/full-stack-spring-boot-react
- Repository: https://github.com/medinar/full-stack-spring-boot-react

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Frontend Layer
    subgraph "Frontend Layer"
        direction TB
        HTML["index.html"]:::frontend
        App["App.js"]:::frontend
        Client["Client.js"]:::frontend
        StudentForm["StudentDrawerForm.js"]:::frontend

        HTML -->|"loads"| App
        App -->|"uses API client"| Client
        App -->|"opens drawer"| StudentForm
        StudentForm -->|"submits via"| Client
    end

    %% Backend Layer
    subgraph "Backend Layer"
        direction TB
        Starter["FullStackSpringBootReactApplication.java"]:::backend
        Controller["StudentController.java"]:::backend
        Service["StudentService.java"]:::backend
        Repository["StudentRepository.java"]:::backend
        Entity["Student.java"]:::model
        Enum["Gender.java"]:::model
        BadReq["BadRequestException.java"]:::exception
        NotFound["NotFoundException.java"]:::exception

        Starter -->|"boots up"| Controller
        Controller -->|"calls"| Service
        Service -->|"queries"| Repository
        Repository -->|"manages"| Entity
        Entity -->|"has enum"| Enum
        Controller -->|"throws"| BadReq
        Controller -->|"throws"| NotFound
        Service -->|"throws"| BadReq
    end

    %% Configuration & Tests
    subgraph "Configuration & Tests"
        direction TB
        AppProp["application.properties"]:::config
        DevProp["application-dev.properties"]:::config
        ITProp["application-it.properties"]:::config
        StudentIT["StudentIT.java"]:::test
        RepoTest["StudentRepositoryTest.java"]:::test
        ServiceTest["StudentServiceTest.java"]:::test
        ContextTest["FullStackSpringBootReactApplicationTests.java"]:::test

        AppProp --> DevProp
        DevProp --> ITProp
        ITProp --> StudentIT
        StudentIT --> Controller
        RepoTest --> Repository
        ServiceTest --> Service
        ContextTest --> Starter
    end

    %% Click Events
    click HTML "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/frontend/public/index.html"
    click App "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/frontend/src/App.js"
    click Client "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/frontend/src/Client.js"
    click StudentForm "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/frontend/src/StudentDrawerForm.js"
    click Starter "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/main/java/com/medinar/fullstackspringbootreact/FullStackSpringBootReactApplication.java"
    click Entity "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/main/java/com/medinar/fullstackspringbootreact/student/Student.java"
    click Enum "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/main/java/com/medinar/fullstackspringbootreact/student/Gender.java"
    click Controller "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/main/java/com/medinar/fullstackspringbootreact/student/StudentController.java"
    click Service "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/main/java/com/medinar/fullstackspringbootreact/student/StudentService.java"
    click Repository "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/main/java/com/medinar/fullstackspringbootreact/student/StudentRepository.java"
    click BadReq "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/main/java/com/medinar/fullstackspringbootreact/student/exception/BadRequestException.java"
    click NotFound "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/main/java/com/medinar/fullstackspringbootreact/student/exception/NotFoundException.java"
    click AppProp "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/main/resources/application.properties"
    click DevProp "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/main/resources/application-dev.properties"
    click ITProp "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/test/resources/application-it.properties"
    click StudentIT "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/test/java/com/medinar/fullstackspringbootreact/integration/StudentIT.java"
    click RepoTest "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/test/java/com/medinar/fullstackspringbootreact/student/StudentRepositoryTest.java"
    click ServiceTest "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/test/java/com/medinar/fullstackspringbootreact/student/StudentServiceTest.java"
    click ContextTest "https://github.com/medinar/full-stack-spring-boot-react/blob/main/src/test/java/com/medinar/fullstackspringbootreact/FullStackSpringBootReactApplicationTests.java"

    %% Styles
    classDef frontend fill:#f9f,stroke:#333,stroke-width:1px
    classDef backend fill:#bbf,stroke:#333,stroke-width:1px
    classDef model fill:#bfb,stroke:#333,stroke-width:1px
    classDef exception fill:#fbb,stroke:#333,stroke-width:1px
    classDef config fill:#fcf,stroke:#333,stroke-width:1px
    classDef test fill:#ffd,stroke:#333,stroke-width:1px
```
