# its8or/tasker-collegeproject architecture

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

- Interactive diagram: https://gitdiagram.com/its8or/tasker-collegeproject
- Repository: https://github.com/its8or/tasker-collegeproject

## Overview

##### Project type and purpose
- From the file tree and README, Tasker is a static, client‑side, single‑user task manager prototype implemented purely in HTML, CSS, and JavaScript. There is no backend or server‑side logic—everything runs in the browser, with data (tasks) held in the browser’s storage (e.g., localStorage).

##### File structure
- Top‑level:
- README.md – project overview
- style.css – global stylesheet
- .vscode – editor settings (irrelevant for runtime)
- Directories:
- pages/ – five HTML views (login, signup, home, profile)
- script/ – three JS modules: login.js, profile.js, tasks.js
- images/ – any static assets used by the pages
- No build scripts, no server config—just static hosting.

##### README for additional insights
- Describes Tasker as “simple” and “basic” CRUD functionality for tasks with deadlines.
- No mention of external APIs or databases, confirming local, in‐browser storage.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Static File Host"
        StaticHost["Static File Host"]:::static
    end

    subgraph Browser
        subgraph View
            Index["index.html (Landing)"]:::static
            LoginView["Tela-de-login.html"]:::static
            SignupView["criar.html"]:::static
            HomeView["home.html"]:::static
            ProfileView["perfil.html"]:::static
        end
        subgraph Controller
            AuthController["login.js"]:::controller
            TaskController["tasks.js"]:::controller
            ProfileController["profile.js"]:::controller
        end
        subgraph Model
            LocalStorage["localStorage"]:::storage
        end
    end

    Images["images"]:::static
    Stylesheet["style.css"]:::static
    README["README.md"]:::docs

    %% Asset Serving
    StaticHost -->|GET HTML/CSS/JS/images| Browser

    %% HTML loads assets
    Index -->|"loads CSS"| Stylesheet
    LoginView -->|"loads CSS"| Stylesheet
    SignupView -->|"loads CSS"| Stylesheet
    HomeView -->|"loads CSS"| Stylesheet
    ProfileView -->|"loads CSS"| Stylesheet

    Index -->|"loads JS"| AuthController
    LoginView -->|"loads JS"| AuthController
    HomeView -->|"loads JS"| TaskController
    ProfileView -->|"loads JS"| ProfileController
    SignupView -->|"loads JS"| AuthController

    View -->|"loads images"| Images

    %% Controller and Model interactions
    AuthController -->|"read/write user credentials"| LocalStorage
    TaskController -->|"read/write tasks data"| LocalStorage
    ProfileController -->|"read/write profile data"| LocalStorage

    LocalStorage -->|"provide data"| AuthController
    LocalStorage -->|"provide data"| TaskController
    LocalStorage -->|"provide data"| ProfileController

    %% Controller updates View
    AuthController -->|"render view updates"| View
    TaskController -->|"render view updates"| View
    ProfileController -->|"render view updates"| View

    %% Documentation
    StaticHost -->|"documentation"| README

    %% Click Events
    click StaticHost "https://github.com/its8or/tasker-collegeproject/tree/master//"
    click Index "https://github.com/its8or/tasker-collegeproject/blob/master/pages/index.html"
    click LoginView "https://github.com/its8or/tasker-collegeproject/blob/master/pages/Tela-de-login.html"
    click SignupView "https://github.com/its8or/tasker-collegeproject/blob/master/pages/criar.html"
    click HomeView "https://github.com/its8or/tasker-collegeproject/blob/master/pages/home.html"
    click ProfileView "https://github.com/its8or/tasker-collegeproject/blob/master/pages/perfil.html"
    click Stylesheet "https://github.com/its8or/tasker-collegeproject/blob/master/style.css"
    click AuthController "https://github.com/its8or/tasker-collegeproject/blob/master/script/login.js"
    click TaskController "https://github.com/its8or/tasker-collegeproject/blob/master/script/tasks.js"
    click ProfileController "https://github.com/its8or/tasker-collegeproject/blob/master/script/profile.js"
    click Images "https://github.com/its8or/tasker-collegeproject/tree/master/images/"
    click README "https://github.com/its8or/tasker-collegeproject/blob/master/README.md"

    %% Styles
    classDef static fill:#ADD8E6,stroke:#333,stroke-width:1px
    classDef controller fill:#90EE90,stroke:#333,stroke-width:1px
    classDef storage fill:#FFFFE0,stroke:#333,stroke-width:1px
    classDef docs fill:#D3D3D3,stroke:#333,stroke-width:1px
```
