# bajrayejoon/minimal-portflio-v2 architecture

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

- Interactive diagram: https://gitdiagram.com/bajrayejoon/minimal-portflio-v2
- Repository: https://github.com/bajrayejoon/minimal-portflio-v2

## Overview

##### Main System Components

a) Client-Side Layer:
- React Application Core
- React Router Navigation System
- Component Structure
- Static Assets

b) Build & Development Layer:
- Vite Development Server
- TypeScript Compilation
- Asset Bundling

c) Deployment & Infrastructure Layer:
- Docker Container
- Vercel Deployment

##### Specific Component Relationships

**MainLayout.tsx ─┐**
- app/root.tsx ──> Router Configuration
**Navbar.tsx ────┘**

**routes/ ───> Individual Route Components**
**components/ ─> Reusable UI Components**

##### Technical Stack Callouts

- React + React Router
- TypeScript
- TailwindCSS
- Biome
- Docker
- Vercel

##### Development Workflow

- Local Development Flow
- CI/CD Pipeline (.github/workflows)
- Git Hooks (Husky)

##### Important Notes

- React Router integration as it's central to the application
- Relationship between the file structure and runtime architecture
- Hot module replacement (HMR) flow for development
- SSR capabilities
- TailwindCSS integration points

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Client Layer"
        direction TB
        ReactApp["React Application"]
        
        subgraph "Core Components"
            direction TB
            Root["Root Component"]
            MainLayout["Main Layout"]
            Navbar["Navigation Bar"]
            Footer["Footer"]
            Common["Common Components"]
        end
        
        subgraph "Routes"
            direction TB
            RouterConfig["Router Configuration"]
            HomeRoute["Home Route"]
        end
        
        subgraph "Utils"
            direction TB
            MetaUtils["Metadata Generator"]
            Styles["Styling (CSS)"]
        end
        
        StaticAssets["Static Assets"]
    end
    
    subgraph "Build System"
        direction TB
        ViteDev["Vite Dev Server"]
        TSCompiler["TypeScript Compiler"]
        BiomeLint["Biome Linting"]
        AssetBundle["Asset Bundling"]
    end
    
    subgraph "Infrastructure"
        direction TB
        Docker["Docker Container"]
        Vercel["Vercel Deployment"]
        
        subgraph "CI/CD"
            direction TB
            GithubActions["GitHub Actions"]
            GitHooks["Git Hooks"]
        end
    end
    
    %% Relationships
    ReactApp --> Root
    Root --> MainLayout
    MainLayout --> Navbar
    MainLayout --> Footer
    Root --> RouterConfig
    RouterConfig --> HomeRoute
    ReactApp --> Common
    ReactApp --> MetaUtils
    ReactApp --> Styles
    ReactApp --> StaticAssets
    
    %% Build Flow
    ViteDev --> TSCompiler
    TSCompiler --> BiomeLint
    BiomeLint --> AssetBundle
    
    %% Deployment Flow
    AssetBundle --> Docker
    Docker --> Vercel
    GithubActions --> Docker
    
    %% Styling
    classDef core fill:#2b6cb0,stroke:#1a4971,color:white
    classDef route fill:#48bb78,stroke:#2f855a,color:white
    classDef util fill:#ecc94b,stroke:#d69e2e,color:black
    classDef build fill:#805ad5,stroke:#6b46c1,color:white
    classDef infra fill:#718096,stroke:#4a5568,color:white
    classDef critical fill:#e53e3e,stroke:#c53030,color:white
    
    class ReactApp,Root,MainLayout,Navbar,Footer,Common core
    class RouterConfig,HomeRoute route
    class MetaUtils,Styles,StaticAssets util
    class ViteDev,TSCompiler,BiomeLint,AssetBundle build
    class Docker,Vercel,GithubActions,GitHooks infra
    
    %% Click Events
    click Root "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/app/root.tsx"
    click MainLayout "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/app/components/MainLayout.tsx"
    click Navbar "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/app/components/Navbar.tsx"
    click Footer "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/app/components/Footer.tsx"
    click Common "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/app/components/common/HoverTranslateAnimation.tsx"
    click HomeRoute "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/app/routes/home.tsx"
    click MetaUtils "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/app/utils/generateMetadata.ts"
    click Styles "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/app/app.css"
    click StaticAssets "https://github.com/BajraYeJoon/minimal-portflio-v2/tree/master/public/assets"
    click ViteDev "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/vite.config.ts"
    click TSCompiler "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/tsconfig.json"
    click BiomeLint "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/biome.json"
    click Docker "https://github.com/BajraYeJoon/minimal-portflio-v2/tree/master/Dockerfile"
    click Vercel "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/vercel.json"
    click GithubActions "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/.github/workflows/release.yml"
    click GitHooks "https://github.com/BajraYeJoon/minimal-portflio-v2/blob/master/.husky"
```
