# abhyshekbhalaji/store_it architecture

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

- Interactive diagram: https://gitdiagram.com/abhyshekbhalaji/store_it
- Repository: https://github.com/abhyshekbhalaji/store_it

## Overview

##### Specific Components to Highlight

a) Authentication Flow:
- Sign In (/app/(auth)/sign-in)
- Sign Up (/app/(auth)/sign-up)
- OTP Verification (components/OTPModal.tsx)

b) Core Features:
- File Management (FileUploader.tsx)
- Data Visualization (Chart.tsx)
- Search & Sort Functionality

##### Technical Stack Indicators

Technology badges for:
- Next.js
- TypeScript
- Tailwind CSS
- Appwrite
- React Server Components

##### Data Flow Patterns

- User authentication flow
- File upload/download processes
- Server action calls
- API interactions with Appwrite

##### Additional Elements

Include:
- Version information (Next.js 13+)
- Environment configurations
- Build/Deploy pipeline indication

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        Frontend["Next.js Frontend (App Router)"]
        
        subgraph Routes
            AuthRoutes["Authentication Routes"]
            MainRoutes["Main Application Routes"]
        end
        
        subgraph Components
            SharedComp["Shared Components"]
            UILib["UI Component Library"]
            AuthComp["Authentication Components"]
            FileComp["File Upload Component"]
            DataVis["Data Visualization"]
            SearchSort["Search & Sort"]
            Nav["Navigation Components"]
        end
    end
    
    subgraph Server
        ServerActions["Server Components & Actions"]
        FileActions["File Management System"]
        UserActions["User Management System"]
        Utils["Utility Functions"]
        Types["Type Definitions"]
        Constants["Application Constants"]
    end
    
    subgraph External
        AppwriteServices["Appwrite Integration"]
        AppwriteAuth["Authentication Service"]
        AppwriteStorage["File Storage Service"]
        AppwriteDB["Database Service"]
    end
    
    %% Relationships
    Frontend --> ServerActions
    AuthRoutes --> ServerActions
    MainRoutes --> ServerActions
    ServerActions --> AppwriteServices
    FileActions --> AppwriteStorage
    UserActions --> AppwriteAuth
    AppwriteServices --> AppwriteAuth
    AppwriteServices --> AppwriteStorage
    AppwriteServices --> AppwriteDB
    
    %% Component Relationships
    AuthComp --> AuthRoutes
    FileComp --> FileActions
    SearchSort --> MainRoutes
    DataVis --> MainRoutes
    Nav --> MainRoutes
    
    %% Style Definitions
    classDef frontend fill:#3b82f6,color:#fff
    classDef server fill:#22c55e,color:#fff
    classDef external fill:#a855f7,color:#fff
    classDef utility fill:#6b7280,color:#fff
    
    %% Apply Styles
    class Frontend,AuthRoutes,MainRoutes,SharedComp,UILib,AuthComp,FileComp,DataVis,SearchSort,Nav frontend
    class ServerActions,FileActions,UserActions server
    class AppwriteServices,AppwriteAuth,AppwriteStorage,AppwriteDB external
    class Utils,Types,Constants utility
    
    %% Click Events
    click AuthRoutes "https://github.com/Abhyshekbhalaji/store_it/tree/main/app/(auth)"
    click MainRoutes "https://github.com/Abhyshekbhalaji/store_it/tree/main/app/(root)"
    click SharedComp "https://github.com/Abhyshekbhalaji/store_it/tree/main/app/components"
    click UILib "https://github.com/Abhyshekbhalaji/store_it/tree/main/components/ui"
    click FileActions "https://github.com/Abhyshekbhalaji/store_it/blob/main/lib/actions/file.actions.ts"
    click UserActions "https://github.com/Abhyshekbhalaji/store_it/blob/main/lib/actions/user.actions.ts"
    click AppwriteServices "https://github.com/Abhyshekbhalaji/store_it/tree/main/lib/appwrite"
    click AuthComp "https://github.com/Abhyshekbhalaji/store_it/blob/main/app/components/AuthForm.tsx"
    click FileComp "https://github.com/Abhyshekbhalaji/store_it/blob/main/app/components/FileUploader.tsx"
    click DataVis "https://github.com/Abhyshekbhalaji/store_it/blob/main/app/components/Chart.tsx"
    click SearchSort "https://github.com/Abhyshekbhalaji/store_it/blob/main/app/components/Search.tsx"
    click Nav "https://github.com/Abhyshekbhalaji/store_it/blob/main/app/components/Header.tsx"
    click Types "https://github.com/Abhyshekbhalaji/store_it/blob/main/app/types/index.d.ts"
    click Constants "https://github.com/Abhyshekbhalaji/store_it/blob/main/app/constants/index.ts"
    click Utils "https://github.com/Abhyshekbhalaji/store_it/blob/main/lib/utils.ts"
```
