# shaiderm16/task-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/shaiderm16/task-management-system
- Repository: https://github.com/shaiderm16/task-management-system

## Overview

##### Project Type & Purpose
- This is a console-based application focusing on task management.
- The primary goal is to allow users to manage their tasks (create, update, view, delete) while persisting data with file storage.

##### Main Components
- Main Application: Represented by src/main.cpp, this is the entry point that initializes the application.
- Task Entity: Represented by the Task class (in Task.cpp). It encapsulates task details such as ID, title, and other attributes.
- Task Manager: Represented by the TaskManager class (in TaskManager.cpp) which carries out operations including creating, viewing, editing, and deleting tasks.
- File Storage: While not implemented as a separate module, file operations (e.g., reading from and writing to "project.txt") are a critical component that persists task data.

##### Establish Relationships and Interactions
- The Main component instantiates the TaskManager.
- The TaskManager maintains a collection of Task objects and provides methods to manage these tasks.
- Interaction Flow:
- The user inputs commands at the console (triggered by the main module).
- The TaskManager then interprets these commands and calls the appropriate functions (e.g., createTask, viewTask, editTask, deleteTask).
- During these operations, the TaskManager interacts with the file storage system to load and save task data.

##### Architectural Patterns & Design Principles
- Object-Oriented Design: The system uses separate classes for Task (data model) and TaskManager (controller/manager), demonstrating encapsulation and separation of concerns.
- File-Based Persistence: Although rudimentary, note the handling of file I/O for saving and retrieving tasks.

##### Relevant Technologies and Libraries
- C++ Standard Library: For I/O operations (iostream, fstream), string manipulation, and vector storage.
- Compiler: g++ is used to compile the code.
- That the design is good for a small-scale, file-backed application without external databases.

##### Elements
- From "Main Module" to "TaskManager" (initialization/command delegation).

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Main Components
    A["Main Module (main.cpp)"]:::main
    B["Task Manager"]:::manager
    C["Task (Task Entity)"]:::task
    D(("File Storage (project.txt)")):::storage

    %% Relationships
    A -->|"initializes"| B
    B -->|"managesTasks"| C
    B -->|"writesData"| D
    D -->|"readsData"| B

    %% Click Events
    click A "https://github.com/shaiderm16/task-management-system/blob/main/src/main.cpp"
    click B "https://github.com/shaiderm16/task-management-system/blob/main/src/TaskManager.cpp"
    click C "https://github.com/shaiderm16/task-management-system/blob/main/src/Task.cpp"

    %% Styles
    classDef main fill:#ffcccb,stroke:#333,stroke-width:2px;
    classDef manager fill:#add8e6,stroke:#333,stroke-width:2px;
    classDef task fill:#90ee90,stroke:#333,stroke-width:2px;
    classDef storage fill:#ffffcc,stroke:#333,stroke-width:2px;
```
