# sindrila/orarubb-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/sindrila/orarubb-frontend
- Repository: https://github.com/sindrila/orarubb-frontend

## Overview

##### Project Type and Purpose
- The project is a front-end application with two distinct delivery methods:
– A mobile/multi-platform frontend built with Flutter (under orarubb-mobile_frontend/widget_app).
– A web frontend built with React (or a similar framework) using Vite (under orarubb-web_frontend).
- Although there is no explicit backend in this repository, the web frontend’s API folders (src/api) indicate that each front-end likely communicates with one or more external service endpoints (e.g., for academic programs, courses, teachers, rooms, etc.). The primary purpose appears to be managing and presenting scheduling information, perhaps related to academic timetables ("Orar" suggesting schedule).

##### Analyzing the File Structure
- Mobile Frontend (Flutter):
- The structure under orarubb-mobile_frontend/widget_app shows typical Flutter directories including android, ios, linux, macos, and windows. This multi-platform setup reflects the effort to support various devices.
- The presence of .gitignore, pubspec.yaml, lib, assets, and test folders indicate that the app follows Flutter’s standard project organization.
- Platform-specific configuration and source code can be seen in directories like android/app/src/main and ios/Runner.
- Web Frontend (React/Vite):
- The orarubb-web_frontend directory includes a package.json, vite.config.js, and a clear separation between public files (e.g., index.html) and source code (in the src folder).

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Mobile Frontend Subgraph
    subgraph "Mobile Frontend – Flutter"
        M0("Mobile App (Flutter)"):::mobileNode
        M1("Android"):::mobileNode
        M2("iOS"):::mobileNode
        M3("Linux"):::mobileNode
        M4("macOS"):::mobileNode
        M5("Windows"):::mobileNode
        M0 -->|"platform"| M1
        M1 -->|"platform"| M2
        M2 -->|"platform"| M3
        M3 -->|"platform"| M4
        M4 -->|"platform"| M5
    end

    %% Web Frontend Subgraph
    subgraph "Web Frontend – React/Vite"
        W0("Web App (React/Vite)"):::webNode
        Wc("Components"):::webNode
        Wp("Pages"):::webNode
        Wl("Layout & Routing"):::webNode
        WA("API Services"):::apiService
        W0 -->|"renders"| Wc
        Wc -->|"navigates"| Wp
        Wp -->|"assembles"| Wl
        Wl -->|"fetches"| WA
    end

    %% External API Services Node
    Ext("External API Services"):::external

    %% Connections from Frontends to External API
    M0 -->|"calls"| Ext
    WA -->|"calls"| Ext

    %% Click Events for Mobile Frontend
    click M0 "https://github.com/sindrila/orarubb-frontend/tree/main/orarubb-mobile_frontend/widget_app"
    click M1 "https://github.com/sindrila/orarubb-frontend/tree/main/orarubb-mobile_frontend/widget_app/android"
    click M2 "https://github.com/sindrila/orarubb-frontend/tree/main/orarubb-mobile_frontend/widget_app/ios"
    click M3 "https://github.com/sindrila/orarubb-frontend/tree/main/orarubb-mobile_frontend/widget_app/linux"
    click M4 "https://github.com/sindrila/orarubb-frontend/tree/main/orarubb-mobile_frontend/widget_app/macos"
    click M5 "https://github.com/sindrila/orarubb-frontend/tree/main/orarubb-mobile_frontend/widget_app/windows"

    %% Click Events for Web Frontend
    click W0 "https://github.com/sindrila/orarubb-frontend/tree/main/orarubb-web_frontend"
    click Wc "https://github.com/sindrila/orarubb-frontend/tree/main/orarubb-web_frontend/src/components"
    click Wp "https://github.com/sindrila/orarubb-frontend/tree/main/orarubb-web_frontend/src/pages"
    click Wl "https://github.com/sindrila/orarubb-frontend/tree/main/orarubb-web_frontend/src/routes"
    click WA "https://github.com/sindrila/orarubb-frontend/tree/main/orarubb-web_frontend/src/api"

    %% Styles
    classDef mobileNode fill:#BBDEFB,stroke:#0D47A1,stroke-width:2px;
    classDef webNode fill:#C8E6C9,stroke:#1B5E20,stroke-width:2px;
    classDef apiService fill:#FFE0B2,stroke:#E65100,stroke-width:2px;
    classDef external fill:#D1C4E9,stroke:#4A148C,stroke-width:2px;
```
