# prakashramanukolanu/factsstudio_react architecture

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

- Interactive diagram: https://gitdiagram.com/prakashramanukolanu/factsstudio_react
- Repository: https://github.com/prakashramanukolanu/factsstudio_react

## Overview

##### Project type and purpose
- This is a Create React App–based single-page web application (SPA).
- It uses React (src/App.js, src/index.js) for UI, CSS for styling, and integrates with Supabase (src/supabase.js) as its backend data/auth service.
- GitHub Actions workflows (in .github/workflows) are set up for CI: tests, monitoring, and main pipeline.

##### File structure
- Top level:
– .github/workflows: CI/CD pipelines (main.yml, monitoring-test.yml, test.yml)
– public/index.html: host HTML template
– src/: application code
– package.json/_lock.json: dependencies & scripts
- src/ contains:
– index.js: entry point, mounts <App />
– App.js: main React component / router
– style.css: global styles
– supabase.js: config and client instantiation for Supabase REST/GraphQL API
- No dedicated “backend” folder—backend is external (Supabase service).

##### README
- Standard Create React App instructions for start, build, test, eject, deploy.

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Development"
        Dev["Developer"]:::dev
    end

    subgraph "Repository & Codebase"
        Repo["GitHub Repository"]:::repo
        subgraph "CI Files"
            MainYml["main.yml"]:::ci
            TestYml["test.yml"]:::ci
            MonYml["monitoring-test.yml"]:::ci
        end
        subgraph "Source Files"
            HTML["public/index.html"]:::code
            IndexJS["src/index.js"]:::code
            AppJS["src/App.js"]:::code
            StyleCSS["src/style.css"]:::code
            SupaJS["src/supabase.js"]:::code
            PackageJSON["package.json"]:::code
            LockJSON["package-lock.json"]:::code
            Readme["README.md"]:::code
            GitIgnore[".gitignore"]:::code
        end
    end

    subgraph "CI/CD (GitHub Actions)"
        CI["CI/CD Workflows"]:::ci
    end

    subgraph "Deployment"
        Deploy["Static Host / CDN"]:::deploy
    end

    subgraph "Runtime"
        Browser["Browser (React SPA)"]:::runtime
        Supabase["Supabase Service"]:::external
        DB["PostgreSQL Database"]:::datastore
    end

    Dev -->|push code| Repo
    Repo -->|contains workflows| MainYml & TestYml & MonYml
    MainYml & TestYml & MonYml --> CI
    CI -->|build/test/deploy| Deploy
    Deploy -->|serves HTML/JS/CSS| Browser
    Browser -->|calls REST/Realtime API| Supabase
    Supabase -->|returns auth tokens & data| Browser
    Supabase -->|persists data| DB
    Browser -.->|optional eject| Dev

    click IndexJS "https://github.com/prakashramanukolanu/factsstudio_react/blob/main/src/index.js"
    click AppJS "https://github.com/prakashramanukolanu/factsstudio_react/blob/main/src/App.js"
    click StyleCSS "https://github.com/prakashramanukolanu/factsstudio_react/blob/main/src/style.css"
    click SupaJS "https://github.com/prakashramanukolanu/factsstudio_react/blob/main/src/supabase.js"
    click HTML "https://github.com/prakashramanukolanu/factsstudio_react/blob/main/public/index.html"
    click MainYml "https://github.com/prakashramanukolanu/factsstudio_react/blob/main/.github/workflows/main.yml"
    click TestYml "https://github.com/prakashramanukolanu/factsstudio_react/blob/main/.github/workflows/test.yml"
    click MonYml "https://github.com/prakashramanukolanu/factsstudio_react/blob/main/.github/workflows/monitoring-test.yml"
    click PackageJSON "https://github.com/prakashramanukolanu/factsstudio_react/blob/main/package.json"
    click LockJSON "https://github.com/prakashramanukolanu/factsstudio_react/blob/main/package-lock.json"
    click Readme "https://github.com/prakashramanukolanu/factsstudio_react/blob/main/README.md"
    click GitIgnore "https://github.com/prakashramanukolanu/factsstudio_react/blob/main/.gitignore"

    classDef dev fill:#f9f,stroke:#333,stroke-width:1px
    classDef repo fill:#ccf,stroke:#333,stroke-width:1px
    classDef ci fill:#fcf,stroke:#333,stroke-width:1px
    classDef code fill:#cfc,stroke:#333,stroke-width:1px
    classDef deploy fill:#cff,stroke:#333,stroke-width:1px
    classDef runtime fill:#ffc,stroke:#333,stroke-width:1px
    classDef external fill:#eef,stroke:#333,stroke-width:1px
    classDef datastore fill:#ddf,stroke:#333,stroke-width:1px
```
