# vic-ihuoma/cv architecture

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

- Interactive diagram: https://gitdiagram.com/vic-ihuoma/cv
- Repository: https://github.com/vic-ihuoma/cv

## Overview

##### Project type and purpose
- This is a single‑page/full‑site static web application (a “Minimalist CV” generator) built with Next.js (app router) and Shadcn/ui.
- It renders a printable résumé from a single config file (`src/data/resume-data.tsx`), uses Tailwind CSS for styling, and is deployed as a static site (with optional serverless/edge functions) on Vercel.

##### File structure
- Top‑level files: Dockerfile & docker‑compose.yaml (local dev container), Next.js config files (`next.config.js`, `tsconfig.json`, lint & prettify configs), `package.json`.
- `src/app/`: Next.js 14 App Router entrypoint (server + client components, global styles).
- `src/data/`: static resume data.
- `src/lib/`: utility functions.
- `public/`, `assets/`: static assets (images, logos, snapshot).

##### README for additional insights
- Built with Next.js 14, React, TypeScript, Shadcn/ui, Tailwind CSS.
- Deploys via Vercel (automatic CI/CD).
- Docker support for local development.
- No external database or API—entire content lives in code.

## Diagram (Mermaid)

```mermaid
graph TD
    %% Entities
    Dev["Developer Workstation"]:::devVC
    DockerEnv["Docker Local Dev"]:::client
    GitHub["GitHub Repo"]:::devVC
    VercelCI["Vercel CI/CD"]:::cicd
    subgraph "Build & Deploy" 
        direction TB
        Build["Next.js Build Process"]:::cicd
        subgraph "Source & Config"
            direction TB
            AppRouter["App Router (src/app/)"]:::build
            Layout["layout.tsx"]:::build
            Page["page.tsx"]:::build
            GlobalsCSS["globals.css"]:::build
            ResumeData["resume-data.tsx"]:::build
            UIComponents["UI Components (src/components/)"]:::build
            Primitives["ui Primitives"]:::build
            CmdMenu["command-menu.tsx"]:::build
            ProjectCard["project-card.tsx"]:::build
            PrintDrawer["print-drawer.tsx"]:::build
            Icons["icons"]:::build
            Utils["utils.ts"]:::build
            PublicAssets["public/"]:::build
            Images["assets/ & src/images/"]:::build
            TailwindCfg["tailwind.config.js"]:::build
            PostCSSCfg["postcss.config.js"]:::build
            NextCfg["next.config.js"]:::build
            TsConfig["tsconfig.json"]:::build
            PackageJSON["package.json"]:::build
            ESLint[".eslintrc.json"]:::build
            Prettier[".prettierrc"]:::build
        end
    end
    CDN["Vercel Edge CDN"]:::hosting
    Browser["Client Browser"]:::client

    %% Relationships
    Dev -->|"git push"| GitHub
    Dev -->|"docker up"| DockerEnv
    GitHub -->|"webhook trigger"| VercelCI
    VercelCI -->|"next build"| Build
    Build -->|"deploy static & edge"| CDN
    CDN -->|"HTTP request"| Browser
    Browser -->|"hydration & print CSS"| Build

    %% Click Events
    click AppRouter "https://github.com/vic-ihuoma/cv/tree/main/src/app/"
    click Layout "https://github.com/vic-ihuoma/cv/blob/main/src/app/layout.tsx"
    click Page "https://github.com/vic-ihuoma/cv/blob/main/src/app/page.tsx"
    click GlobalsCSS "https://github.com/vic-ihuoma/cv/blob/main/src/app/globals.css"
    click ResumeData "https://github.com/vic-ihuoma/cv/blob/main/src/data/resume-data.tsx"
    click Primitives "https://github.com/vic-ihuoma/cv/tree/main/src/components/ui/"
    click CmdMenu "https://github.com/vic-ihuoma/cv/blob/main/src/components/command-menu.tsx"
    click ProjectCard "https://github.com/vic-ihuoma/cv/blob/main/src/components/project-card.tsx"
    click PrintDrawer "https://github.com/vic-ihuoma/cv/blob/main/src/components/print-drawer.tsx"
    click Icons "https://github.com/vic-ihuoma/cv/tree/main/src/components/icons/"
    click Utils "https://github.com/vic-ihuoma/cv/blob/main/src/lib/utils.ts"
    click PublicAssets "https://github.com/vic-ihuoma/cv/tree/main/public/"
    click Images "https://github.com/vic-ihuoma/cv/tree/main/assets/"
    click TailwindCfg "https://github.com/vic-ihuoma/cv/blob/main/tailwind.config.js"
    click PostCSSCfg "https://github.com/vic-ihuoma/cv/blob/main/postcss.config.js"
    click NextCfg "https://github.com/vic-ihuoma/cv/blob/main/next.config.js"
    click TsConfig "https://github.com/vic-ihuoma/cv/blob/main/tsconfig.json"
    click DockerEnv "https://github.com/vic-ihuoma/cv/tree/main/Dockerfile"
    click DockerEnv "https://github.com/vic-ihuoma/cv/blob/main/docker-compose.yaml"
    click PackageJSON "https://github.com/vic-ihuoma/cv/blob/main/package.json"
    click ESLint "https://github.com/vic-ihuoma/cv/blob/main/.eslintrc.json"
    click Prettier "https://github.com/vic-ihuoma/cv/blob/main/.prettierrc"

    %% Styles
    classDef devVC fill:#ADD8E6,stroke:#000
    classDef cicd fill:#90EE90,stroke:#000
    classDef hosting fill:#FFA500,stroke:#000
    classDef client fill:#D3D3D3,stroke:#000
    classDef build fill:#E0FFFF,stroke:#000
```
