# immanuel-peter/digital-resume architecture

> Architecture diagram of the GitHub repository immanuel-peter/digital-resume, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/immanuel-peter/digital-resume
- Repository: https://github.com/immanuel-peter/digital-resume

## Overview

##### Main Components
- Frontend UI: Represented by the React application. Sub-components include:
- Main App Component (src/App.js)
- Individual UI components (About.js, Skills.js, Experience.js, Projects.js, Education.js, Certifications.js, Contact.js, Navbar.js)
- The special ImmanuelAI component (src/components/ImmanuelAI.js)
- Assets & Styling:
- Static HTML and manifest files in the public directory (index.html, manifest.json, robots.txt)
- Stylesheets (CSS files like src/App.css, src/index.css) and Tailwind configuration (tailwind.config.js)
- External APIs:
- OpenAI API used by ImmanuelAI for chatbot functionality.
- Deployment & Build:
- Node.js dependencies (package.json, package-lock.json) and deployment settings (the README mentioned deployment on Vercel).

##### Establish Relationships and Interactions
- UI Components: The React application (in src/) serves as the entry point which then routes to various modular components. For instance, the Navbar enables navigation to different sections.
- Data Flow:
- User interactions from components like ImmanuelAI trigger API calls to the OpenAI service.
- Styling & Assets: The public directory contains layout scaffolding (index.html) and assets, while Tailwind CSS and additional CSS files control the look and feel.
- Build & Deployment: The node-based build scripts (via package.json) illustrate the flow from source code to a deployable package for hosting (e.g., on Vercel).

##### Architectural Patterns
- Component-based Architecture: Emphasize the clear separation of concerns among individual React components.
- Single Page Application (SPA): Indicate how the navigation is handled within the client side, likely using React Router if extended.
- External Integration: Show how the ImmanuelAI component communicates with the OpenAI API, using asynchronous requests possibly directly from the client.

##### Including Relevant Technologies
- React: Core framework for building the user interface.
- Tailwind CSS: For styling and responsive design.
- OpenAI API: Powers the AI chatbot.
- Node.js: Manages dependencies and scripts.
- Vercel: Deployment platform as noted in the README.

## Diagram (Mermaid)

```mermaid
flowchart TD
    User["User"]:::external

    subgraph "Static Assets & Styling"
        subgraph "Public Assets"
            HTML["index.html"]:::static
            Manifest["manifest.json"]:::static
            Robots["robots.txt"]:::static
        end
        subgraph "Styles & Config"
            AppCSS["App.css"]:::static
            IndexCSS["index.css"]:::static
            Tailwind["tailwind.config.js"]:::static
        end
    end

    subgraph "Build & Deployment"
        Package["package.json"]:::build
        PackageLock["package-lock.json"]:::build
        Readme["README.md"]:::build
    end

    subgraph "React App"
        App["Main App"]:::frontend
        subgraph "UI Components"
            Navbar["Navbar"]:::frontend
            subgraph "Content Components"
                About["About"]:::frontend
                Skills["Skills"]:::frontend
                Experience["Experience"]:::frontend
                Projects["Projects"]:::frontend
                Education["Education"]:::frontend
                Certifications["Certifications"]:::frontend
                Contact["Contact"]:::frontend
            end
            ImmanuelAI["ImmanuelAI"]:::frontend
        end
    end

    OpenAI["OpenAI API"]:::external
    Vercel["Vercel"]:::deploy

    User -->|"navigates"| App
    App -->|"includes"| Navbar
    App -->|"includes"| ImmanuelAI
    App -->|"includes"| About
    App -->|"includes"| Skills
    App -->|"includes"| Experience
    App -->|"includes"| Projects
    App -->|"includes"| Education
    App -->|"includes"| Certifications
    App -->|"includes"| Contact

    ImmanuelAI -->|"calls"| OpenAI

    App -->|"loads"| HTML
    App -->|"applies"| AppCSS

    Package -->|"build&deploy"| Vercel

    click App "https://github.com/immanuel-peter/digital-resume/blob/master/src/App.js"
    click About "https://github.com/immanuel-peter/digital-resume/blob/master/src/components/About.js"
    click Skills "https://github.com/immanuel-peter/digital-resume/blob/master/src/components/Skills.js"
    click Experience "https://github.com/immanuel-peter/digital-resume/blob/master/src/components/Experience.js"
    click Projects "https://github.com/immanuel-peter/digital-resume/blob/master/src/components/Projects.js"
    click Education "https://github.com/immanuel-peter/digital-resume/blob/master/src/components/Education.js"
    click Certifications "https://github.com/immanuel-peter/digital-resume/blob/master/src/components/Certifications.js"
    click Contact "https://github.com/immanuel-peter/digital-resume/blob/master/src/components/Contact.js"
    click Navbar "https://github.com/immanuel-peter/digital-resume/blob/master/src/components/Navbar.js"
    click ImmanuelAI "https://github.com/immanuel-peter/digital-resume/blob/master/src/components/ImmanuelAI.js"

    click HTML "https://github.com/immanuel-peter/digital-resume/blob/master/public/index.html"
    click Manifest "https://github.com/immanuel-peter/digital-resume/blob/master/public/manifest.json"
    click Robots "https://github.com/immanuel-peter/digital-resume/blob/master/public/robots.txt"

    click AppCSS "https://github.com/immanuel-peter/digital-resume/blob/master/src/App.css"
    click IndexCSS "https://github.com/immanuel-peter/digital-resume/blob/master/src/index.css"
    click Tailwind "https://github.com/immanuel-peter/digital-resume/blob/master/tailwind.config.js"

    click Package "https://github.com/immanuel-peter/digital-resume/blob/master/package.json"
    click PackageLock "https://github.com/immanuel-peter/digital-resume/blob/master/package-lock.json"
    click Readme "https://github.com/immanuel-peter/digital-resume/blob/master/README.md"

    classDef frontend fill:#C3E4ED,stroke:#0B3954,stroke-width:2px;
    classDef static fill:#F6D6AD,stroke:#B83B5E,stroke-width:2px;
    classDef build fill:#BBDED6,stroke:#2A363B,stroke-width:2px;
    classDef external fill:#DCEDC1,stroke:#7CB342,stroke-width:2px;
    classDef deploy fill:#FFCC80,stroke:#F57C00,stroke-width:2px;
```
