# parasraina01/ai-calc-fe architecture

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

- Interactive diagram: https://gitdiagram.com/parasraina01/ai-calc-fe
- Repository: https://github.com/parasraina01/ai-calc-fe

## Overview

##### Project Type Analysis
This is a frontend-only application built with modern web technologies:
- React with TypeScript
- Vite as the build tool
- TailwindCSS for styling
- ESLint for code quality
- Docker support for containerization

##### Main Components

A. Application Layer (Core)
- Sub-components:
- Components Layer (src/components)
- Screens Layer (src/screens)
- Utils/Library Layer (src/lib)

B. Build & Development Infrastructure
- Vite Development Server
- TypeScript Compiler
- ESLint Processing
- TailwindCSS Processing

C. Deployment Layer
- Docker Container
- Vercel Deployment (indicated by vercel.json)

**[Client Browser]**
- ↕
**[Vercel Edge Network]**
- ↕
**[Docker Container]**
- ↓

- React App Core  |

- Screens   |  |

- Components|  |

- Utils/Lib |  |

- ↕
**[Build Pipeline]**
- Vite
- TypeScript
- TailwindCSS
- ESLint

##### Important Details to Highlight

A. Component Architecture:
- Hierarchy between screens and reusable UI components
- UI component library (src/components/ui)
- Relationship between pages and their components

B. Build Process Flow:
- TypeScript compilation
- Vite bundling
- CSS processing with TailwindCSS
- Static asset handling

C. Development Tools:
- Hot Module Replacement (HMR)
- ESLint configuration flow
- TypeScript type checking

##### Key Relationships to Emphasize

- How components communicate with each other
- Build tool chain interactions
- Deployment pipeline flow
- Development vs Production environments

For this specific frontend application, focus on:
##### Environment-specific configurations

This will provide a clear understanding of both the application architecture and the supporting infrastructure needed for development and deployment.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        Browser["Web Browser"]
    end

    subgraph Deployment
        Vercel["Vercel Edge Network"]
        Docker["Docker Container"]:::docker
    end

    subgraph "React Application Core"
        App["App Root"]:::app
        Main["Main Entry"]:::main
        
        subgraph "Screens Layer"
            Screens["Screens Container"]:::screens
            Home["Home Screen"]:::screen
            Landing["Landing Page"]:::screen
        end
        
        subgraph "Components Layer"
            Components["Components Container"]:::components
            UI["UI Components"]:::ui
            Button["Button"]:::component
            Card["Card"]:::component
            Sheet["Sheet"]:::component
        end
        
        subgraph "Utils Layer"
            Utils["Utils/Library"]:::utils
            Constants["Constants"]:::utils
        end
    end

    subgraph "Build Infrastructure"
        Vite["Vite Dev Server"]:::build
        TSC["TypeScript Compiler"]:::build
        ESLint["ESLint Processing"]:::build
        TailwindCSS["TailwindCSS Processing"]:::build
    end

    subgraph "Configuration"
        ViteConfig["Vite Config"]:::config
        TSConfig["TypeScript Configs"]:::config
        TailwindConfig["TailwindCSS Config"]:::config
        ESLintConfig["ESLint Config"]:::config
        EnvConfig["Environment Config"]:::config
    end

    Browser --> Vercel
    Vercel --> Docker
    Docker --> App
    App --> Main
    Main --> Screens
    Screens --> Home
    Home --> Landing
    Home --> Components
    Components --> UI
    UI --> Button
    UI --> Card
    UI --> Sheet
    App --> Utils
    Utils --> Constants

    ViteConfig --> Vite
    TSConfig --> TSC
    TailwindConfig --> TailwindCSS
    ESLintConfig --> ESLint

    classDef docker fill:#1a73e8,color:#fff
    classDef app fill:#4285f4,color:#fff
    classDef main fill:#4285f4,color:#fff
    classDef screens fill:#34a853,color:#fff
    classDef screen fill:#34a853,color:#fff
    classDef components fill:#ea4335,color:#fff
    classDef component fill:#ea4335,color:#fff
    classDef ui fill:#ea4335,color:#fff
    classDef utils fill:#fbbc05,color:#fff
    classDef build fill:#fa7b17,color:#fff
    classDef config fill:#666,color:#fff

    click App "https://github.com/ParasRaina01/ai-calc-fe/blob/main/src/App.tsx"
    click Main "https://github.com/ParasRaina01/ai-calc-fe/blob/main/src/main.tsx"
    click Screens "https://github.com/ParasRaina01/ai-calc-fe/tree/main/src/screens"
    click Home "https://github.com/ParasRaina01/ai-calc-fe/tree/main/src/screens/home"
    click Landing "https://github.com/ParasRaina01/ai-calc-fe/blob/main/src/screens/home/landingPage.tsx"
    click Components "https://github.com/ParasRaina01/ai-calc-fe/tree/main/src/components"
    click UI "https://github.com/ParasRaina01/ai-calc-fe/tree/main/src/components/ui"
    click Button "https://github.com/ParasRaina01/ai-calc-fe/blob/main/src/components/ui/button.tsx"
    click Card "https://github.com/ParasRaina01/ai-calc-fe/blob/main/src/components/ui/card.tsx"
    click Sheet "https://github.com/ParasRaina01/ai-calc-fe/blob/main/src/components/ui/sheet.tsx"
    click Utils "https://github.com/ParasRaina01/ai-calc-fe/tree/main/src/lib"
    click Constants "https://github.com/ParasRaina01/ai-calc-fe/blob/main/src/constants.ts"
    click ViteConfig "https://github.com/ParasRaina01/ai-calc-fe/blob/main/vite.config.ts"
    click TSConfig "https://github.com/ParasRaina01/ai-calc-fe/blob/main/tsconfig.json"
    click TailwindConfig "https://github.com/ParasRaina01/ai-calc-fe/blob/main/tailwind.config.js"
    click ESLintConfig "https://github.com/ParasRaina01/ai-calc-fe/blob/main/.eslintrc.json"
    click EnvConfig "https://github.com/ParasRaina01/ai-calc-fe/blob/main/.env"
    click Docker "https://github.com/ParasRaina01/ai-calc-fe/tree/main/Dockerfile"
```
