# jy2694/storix architecture

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

- Interactive diagram: https://gitdiagram.com/jy2694/storix
- Repository: https://github.com/jy2694/storix

## Overview

Project Type: Full-stack app with a Svelte front-end and a Go back-end.

Components:
- Frontend: Svelte code (src directory, +layout.svelte, +page.svelte, lib, routes) using Tailwind, Vite, TypeScript.
- Backend: Go code (backend directory with controllers, routes, handlers, helpers, database) managing API endpoints, authentication, file handling.
- Database (implied by backend/database) for persistence; additional external services as needed.

Design Guidelines:

## Diagram (Mermaid)

```mermaid
flowchart TD
    FE["Svelte Frontend"]:::frontend
    BE["Go Backend"]:::backend
    FE -->|"API_call"| BE

    subgraph Modules
        direction TB
        HR["Handler & Routes"]:::handler
        C["Controller (auth.go,file.go)"]:::controller
        HL["Helper Modules (jwtHelper.go,fileHelper.go)"]:::helper
        DB["Database (database.go)"]:::database
    end

    BE --> HR
    HR -->|"calls"| C
    C -->|"uses"| HL
    C -->|"queries"| DB

    click FE "https://github.com/jy2694/storix/tree/main/src"
    click BE "https://github.com/jy2694/storix/tree/main/backend"
    click C "https://github.com/jy2694/storix/tree/main/backend/controller"
    click HR "https://github.com/jy2694/storix/tree/main/backend/handler"
    click HL "https://github.com/jy2694/storix/tree/main/backend/helper"
    click DB "https://github.com/jy2694/storix/blob/main/backend/database/database.go"

    classDef frontend fill:#f9c,stroke:#333,stroke-width:2px;
    classDef backend fill:#ccf,stroke:#333,stroke-width:2px;
    classDef handler fill:#cfc,stroke:#333,stroke-width:2px;
    classDef controller fill:#fc9,stroke:#333,stroke-width:2px;
    classDef helper fill:#cff,stroke:#333,stroke-width:2px;
    classDef database fill:#ffc,stroke:#333,stroke-width:2px;
```
