# raju2525/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/raju2525/portfolio
- Repository: https://github.com/raju2525/portfolio

## Overview

##### Project type and purpose
- This is a single-page portfolio website built in React.js. Its sole function is to display a personal resume, technical skills, project showcase, and related static assets (PDF, images). There is no custom backend API in the codebase—deployment is via a static-site host.

##### File structure
- Top-level:
- public/ – contains index.html, manifest.json, robots.txt and other static files served verbatim.
- src/ – React application source, including:
– App.js, index.js, global CSS files
– Assets/ – images, resume PDF
– components/ – React components grouped by feature (Home, About, Projects, Resume, Navbar, Footer, utility components)
- package.json, package-lock.json – declares dependencies and NPM scripts.
- README.md – describes project purpose and dependencies.
- No “backend” or API directories; build and serve are client-side only.

##### README for additional insights
- Technology stack: React.js, Node.js (for build), Express.js (mentioned but not present in code), CSS3.
- Deployment platform: Vercel (continuous deployment on push).

##### Elements
- Clear labels:
- “Browser”
- “CDN / Vercel Hosting”
- “React SPA (bundle.js, index.html)”
- “Component Modules (Home, About, Projects, Resume, Navbar, Footer)”
- “Static Assets (PDF, images)”
- “GitHub (Source Control)”
- “Node.js Build Server”
– GitHub push → Vercel build
– Vercel build → CDN deployment
– Browser request → CDN
– CDN → Browser serves index.html & JS
– React app → fetch static assets

##### Detail and essential elements
- Related components with containers (e.g., one container for “React application” that encloses all component modules).
- Don’t add fictitious modules; reflect exactly the folder structure and actual libraries in package.json.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% CI/CD Pipeline
    subgraph "CI/CD Pipeline"
        GH["GitHub (Source Control)"]:::pipeline
        VercelCI["Vercel CI/CD"]:::pipeline
        NodeBuild["Node.js Build Server"]:::pipeline
    end

    %% Hosting & Delivery
    subgraph "Hosting & Delivery"
        CDN["CDN / Vercel Hosting"]:::runtime
        Browser["User's Web Browser"]:::runtime
    end

    %% React Application
    subgraph "React SPA" 
        direction TB
        HTML["index.html"]:::code
        EntryJS["index.js"]:::code
        AppComp["App.js"]:::code
        Styles["Global Styles<br/>(index.css, style.css)"]:::code
        subgraph "Components"
            direction TB
            Navbar["Navbar"]:::code
            Footer["Footer"]:::code
            subgraph "Home Section"
                Home1["Home.js"]:::code
                Home2["Home2.js"]:::code
                TypeComp["Type.js"]:::code
            end
            subgraph "About Section"
                AboutMain["About.js"]:::code
                AboutCard["AboutCard.js"]:::code
                GithubComp["Github.js"]:::code
                Techstack["Techstack.js"]:::code
                Toolstack["Toolstack.js"]:::code
            end
            subgraph "Projects Section"
                ProjectsMain["Projects.js"]:::code
                ProjectCards["ProjectCards.js"]:::code
            end
            ResumeComp["ResumeNew.js"]:::code
            subgraph "Utility Components"
                Particle["Particle.js"]:::code
                PreComp["Pre.js"]:::code
                ScrollTop["ScrollToTop.js"]:::code
            end
        end
        subgraph "Static Assets" 
            direction TB
            Images["Images (src/Assets/Projects/*)"]:::asset
            PDF["Resume PDF"]:::asset
            PublicFiles["manifest.json, robots.txt"]:::asset
        end
    end

    %% Documentation & Config
    subgraph "Config & Docs"
        PKG["package.json, package-lock.json"]:::docs
        README["README.md"]:::docs
    end

    %% Connections
    GH -->|"push"| VercelCI
    VercelCI -->|"npm run build"| NodeBuild
    NodeBuild -->|"deploy static files"| CDN
    Browser -->|"HTTP GET /"| CDN
    CDN -->|"serve index.html & bundle.js"| Browser
    Browser -->|"loads React SPA"| HTML
    HTML -->|"imports"| EntryJS
    EntryJS -->|"renders"| AppComp
    AppComp -->|"uses"| Navbar
    AppComp -->|"uses"| Footer
    AppComp -->|"uses"| Home1
    AppComp -->|"uses"| AboutMain
    AppComp -->|"uses"| ProjectsMain
    AppComp -->|"uses"| ResumeComp
    AppComp -->|"uses"| Particle
    AppComp -->|"loads styles"| Styles
    Components -->|"load assets"| Images
    Components -->|"load assets"| PDF
    CDN -->|"serves public files"| PublicFiles

    %% Click Events
    click HTML "https://github.com/raju2525/portfolio/blob/main/public/index.html"
    click EntryJS "https://github.com/raju2525/portfolio/blob/main/src/index.js"
    click AppComp "https://github.com/raju2525/portfolio/blob/main/src/App.js"
    click Styles "https://github.com/raju2525/portfolio/blob/main/src/index.css"
    click Styles "https://github.com/raju2525/portfolio/blob/main/src/style.css"
    click Navbar "https://github.com/raju2525/portfolio/blob/main/src/components/Navbar.js"
    click Footer "https://github.com/raju2525/portfolio/blob/main/src/components/Footer.js"
    click Home1 "https://github.com/raju2525/portfolio/blob/main/src/components/Home/Home.js"
    click Home2 "https://github.com/raju2525/portfolio/blob/main/src/components/Home/Home2.js"
    click TypeComp "https://github.com/raju2525/portfolio/blob/main/src/components/Home/Type.js"
    click AboutMain "https://github.com/raju2525/portfolio/blob/main/src/components/About/About.js"
    click AboutCard "https://github.com/raju2525/portfolio/blob/main/src/components/About/AboutCard.js"
    click GithubComp "https://github.com/raju2525/portfolio/blob/main/src/components/About/Github.js"
    click Techstack "https://github.com/raju2525/portfolio/blob/main/src/components/About/Techstack.js"
    click Toolstack "https://github.com/raju2525/portfolio/blob/main/src/components/About/Toolstack.js"
    click ProjectsMain "https://github.com/raju2525/portfolio/blob/main/src/components/Projects/Projects.js"
    click ProjectCards "https://github.com/raju2525/portfolio/blob/main/src/components/Projects/ProjectCards.js"
    click ResumeComp "https://github.com/raju2525/portfolio/blob/main/src/components/Resume/ResumeNew.js"
    click Particle "https://github.com/raju2525/portfolio/blob/main/src/components/Particle.js"
    click PreComp "https://github.com/raju2525/portfolio/blob/main/src/components/Pre.js"
    click ScrollTop "https://github.com/raju2525/portfolio/blob/main/src/components/ScrollToTop.js"
    click Images "https://github.com/raju2525/portfolio/tree/main/src/Assets/Projects/"
    click PDF "https://github.com/raju2525/portfolio/blob/main/src/Assets/RAJU_ATS_RESUME.pdf"
    click PublicFiles "https://github.com/raju2525/portfolio/blob/main/public/manifest.json"
    click PublicFiles "https://github.com/raju2525/portfolio/blob/main/public/robots.txt"
    click PKG "https://github.com/raju2525/portfolio/blob/main/package.json"
    click PKG "https://github.com/raju2525/portfolio/blob/main/package-lock.json"
    click README "https://github.com/raju2525/portfolio/blob/main/README.md"

    %% Styles
    classDef runtime fill:#add8e6,stroke:#333,stroke-width:1px
    classDef code fill:#90ee90,stroke:#333,stroke-width:1px
    classDef pipeline fill:#ffcc00,stroke:#333,stroke-width:1px
    classDef asset fill:#f0e68c,stroke:#333,stroke-width:1px
    classDef docs fill:#d3d3d3,stroke:#333,stroke-width:1px
```
