How mnmashiur/to-do-list works
Project type and purpose
• This is a small, single‐executable C++ command‐line “To-Do List” application.
• Purpose: allow users to add, update, delete, and display tasks via a simple CLI, storing tasks in local storage (e.g., a file).
File structure
• Top level:
• Final.cpp – the entire application source
• README.md – project description
• CSE246 Project Report-Group 7.pdf – documentation/report
• No separate “frontend” or “backend” directories, no external dependencies or services—everything lives in one binary.
README for additional insights
• Emphasizes simplicity and core CRUD operations on tasks
• No mention of databases or frameworks—presumably uses standard C++ file I/O for persistence.
Main components
a. Presentation (CLI)
• Parses user commands
• Displays menus and task listings
b. Business Logic (TaskManager)
• Implements add(), update(), delete(), list() operations
• Validates input
c. Persistence (FileStorage)
• Reads/writes task records to a local file (e.g., “tasks.txt”)
• Serializes/deserializes Task objects
d. Data Model (Task)
• Struct or class representing a single task (fields: id, description, status, timestamp)
Relationships and interactions
• User → CLI Interface: enters commands
• CLI Interface → TaskManager: invokes CRUD methods
• TaskManager ↔ FileStorage: reads existing tasks at startup; writes updates back to disk
• TaskManager → Data Model: creates/manipulates Task instances
• CLI Interface → displays Task instances
Architectural patterns and principles
• Separation of concerns:
• Presentation layer (I/O)
• Business logic layer (operations on tasks)
• Data access layer (file I/O)
• Modular design (even within one file, conceptually group functions into modules)
Detailed capture of essential architectural elements
• Although it’s a single executable, conceptually separate it into layers for clarity and potential future expansion (e.g., switching to a DB).
• That all layers are linked in‐process, no network or external services are involved.
• File‐based persistence as the sole external dependency.