# camof1ow/your-name-815 architecture

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

- Interactive diagram: https://gitdiagram.com/camof1ow/your-name-815
- Repository: https://github.com/camof1ow/your-name-815

## Overview

##### Main Components Identification

The system should be represented as a client-server architecture with the following key components:

a) Frontend Layer (Next.js Application):
- Client-side Components (marked with "use client")
- Server-side Components
- Routing Structure
- Global State Management

b) Backend Layer (Spring Boot API):
- API Endpoints
- Data Processing Services

c) Data Storage:
- Static Files (CSV)
- API Data Storage

**[Frontend Layer]**
- Pages (Next.js Routes)
- Home Page
- MyName Feature
- Activist Feature
- Components
- UI Components
- Feature Components
- Global Context
- Static Assets

**[Backend Layer]**
- API Endpoints
- Data Services

**[External Services]**
- Vercel Deployment

##### Specific Implementation Details

a) Frontend Architecture:
- Next.js 13+ App Router structure (/app directory)
- Client Components vs Server Components
- Global Context implementation
- Modal and UI component relationships

b) Data Flow:
- Name conversion process
- Activist search functionality
- Like button interactions
- API communication patterns

##### Technical Stack Visualization

A tech stack section showing:
- React.js 18.3.1
- TypeScript 4.0.0
- Next.js 12.0.0
- Tailwind CSS 3.0.0
- Spring Boot Backend 3.3.2

##### Key Features to Emphasize

Following architectural patterns:
- Client-side name conversion logic
- Server-side data fetching
- Modal state management
- Error handling patterns
- API rewrite configuration for HTTPS

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Frontend["Frontend Layer"]
        direction TB
        AppLayout["App Layout"]
        GlobalState["Global State"]
        
        subgraph Pages["Pages & Routes"]
            direction TB
            HomePage["Home Page"]
            MyNamePage["MyName Feature"]
            ActivistPage["Activist Feature"]
            ResultPages["Result Pages"]
            NotFound["404 Page"]
        end
        
        subgraph Components["UI Components"]
            direction TB
            Nav["Navigation System"]
            Modal["Modal System"]
            PeopleModal["Feature Modal"]
            LikeBtn["Like Button"]
            FormElements["Form Elements"]
        end
        
        subgraph Assets["Static Assets"]
            direction TB
            HanjaDB["Hanja Database"]
            ActivistData["Activist Data"]
            Styles["Global Styles"]
            Utils["Client Utilities"]
        end
        
        Config["Configuration Files"]
    end
    
    subgraph Backend["Backend Layer"]
        direction TB
        API["API Endpoints"]
        DataServices["Data Services"]
    end
    
    subgraph External["External Services"]
        Vercel["Vercel Deployment"]
    end
    
    %% Relationships
    AppLayout --> Pages
    GlobalState --> Components
    Pages --> Components
    Components --> Assets
    API --> DataServices
    Pages --> API
    Components --> API
    Frontend --> Vercel
    
    %% Click Events
    click AppLayout "https://github.com/Camof1ow/your-name-815/blob/main/app/layout.tsx"
    click GlobalState "https://github.com/Camof1ow/your-name-815/blob/main/context/GlobalContext.tsx"
    click HomePage "https://github.com/Camof1ow/your-name-815/blob/main/app/page.tsx"
    click MyNamePage "https://github.com/Camof1ow/your-name-815/blob/main/app/myname/page.tsx"
    click ActivistPage "https://github.com/Camof1ow/your-name-815/blob/main/app/activist/page.tsx"
    click ResultPages "https://github.com/Camof1ow/your-name-815/blob/main/app/myname/result/page.tsx"
    click NotFound "https://github.com/Camof1ow/your-name-815/blob/main/app/not-found.tsx"
    click Nav "https://github.com/Camof1ow/your-name-815/blob/main/components/Navigation.tsx"
    click Modal "https://github.com/Camof1ow/your-name-815/blob/main/components/Modal.tsx"
    click PeopleModal "https://github.com/Camof1ow/your-name-815/blob/main/components/PeopleModal.tsx"
    click LikeBtn "https://github.com/Camof1ow/your-name-815/blob/main/components/LikeButton.tsx"
    click FormElements "https://github.com/Camof1ow/your-name-815/blob/main/components/GenderSelect.tsx"
    click HanjaDB "https://github.com/Camof1ow/your-name-815/blob/main/public/hanja.csv"
    click ActivistData "https://github.com/Camof1ow/your-name-815/tree/main/public/activists"
    click Styles "https://github.com/Camof1ow/your-name-815/blob/main/app/globals.css"
    click Utils "https://github.com/Camof1ow/your-name-815/blob/main/public/script.js"
    click Config "https://github.com/Camof1ow/your-name-815/blob/main/next.config.mjs"
    
    classDef frontend fill:#a8d1ff,stroke:#333
    classDef backend fill:#98ff98,stroke:#333
    classDef external fill:#ffeb99,stroke:#333
    classDef assets fill:#e6e6e6,stroke:#333
    
    class Frontend,Pages,Components,Assets,Config frontend
    class Backend,API,DataServices backend
    class External,Vercel external
    class HanjaDB,ActivistData,Styles,Utils assets
    
    %% Legend
    subgraph Legend
        direction TB
        Frontend_L["Frontend"]:::frontend
        Backend_L["Backend"]:::backend
        External_L["External"]:::external
        Assets_L["Assets"]:::assets
    end
```
