TodoList dApp
A blockchain-based To-Do List DApp to securely add, view, and manage tasks with data stored on Ethereum.
Videos
Description
This project is a Decentralized Application (DApp) for managing tasks, leveraging Ethereum smart contracts and Web3.js for blockchain integration. Here's how it works:
- Smart Contract:The backend logic is implemented in a Solidity smart contract named TodoList. It manages tasks using a mapping structure where each task has a unique ID, content, and completion status.Users can add tasks using the createTask function, which increments the task count and stores the task details.The toggleCompleted function allows users to mark tasks as complete or incomplete, providing flexibility in task management.
- Blockchain Storage:All task data is securely stored on the Ethereum blockchain, ensuring transparency, immutability, and tamper-proof record-keeping.
- Frontend Implementation:The front-end is built using HTML, CSS, and JavaScript.The application uses Web3.js to interact with the Ethereum blockchain and the deployed smart contract.Users connect their MetaMask wallet to interact with the application. Once connected, the wallet address is displayed, and the app can send transactions to the blockchain.
- Features: Add Task: Users can input a new task, which is added to the blockchain using the createTask function.View Tasks: The loadTasks function fetches all tasks from the blockchain and displays them in a list, showing the task ID, content, and completion status.Mark as Complete/Incomplete: Users can toggle a task's status directly from the interface, and the change is updated on the blockchain.
- Security:The app ensures user data integrity through blockchain storage and relies on MetaMask for secure account management and transaction signing.