How eriklujan/to-do-list-app works
Main Components
• User Interface (HTML): Represented by the "HTML/index.html" file. This component is responsible for structuring the page where users interact with tasks.
• Styling (CSS): Represented by "CSS/style.css". This handles the layouts, animations, and responsiveness.
• Application Logic (JavaScript): The "JS/script.js" file contains the logic for task management (adding, deleting, and marking tasks).
• Data Persistence: Although there's no backend, the project leverages localStorage for saving tasks locally.
Relationships and Interactions
• The HTML component renders the structure and interactive elements (e.g., lists, buttons).
• The JavaScript component listens for user events (clicks for adding, deleting, or completing tasks) and updates the HTML DOM accordingly.
• The JavaScript module interacts with localStorage to save and retrieve tasks, ensuring data persists even after the browser is closed.
• CSS styles are applied to the HTML elements to provide a responsive and visually appealing interface.
Architectural Patterns and Design Principles
• Separation of Concerns: The project separates structure (HTML), style (CSS), and behavior (JavaScript).
• Data Binding: Although not using advanced frameworks, there is an implicit data binding between localStorage data, JS updates, and UI rendering.
Relevant Technologies and Frameworks
• HTML5 for markup.
• CSS3 for styling and animations.
• JavaScript for handling user interactions, logic, and persistence via localStorage.
Elements
• From the "User" to the "HTML" component to indicate interaction.
• From the "HTML" component to "JavaScript" to show event handling.
• From "JavaScript" to "localStorage" to denote data saving and retrieval.
• From "JavaScript" back to "HTML" to demonstrate updating of the user interface.
• Branch out to the JavaScript component which connects via event listeners and DOM manipulation.
• LocalStorage as a storage mechanism that reads/writes data in response to JS events.
• Assets folder as a supporting component that the HTML/CSS can reference.