This project is a decentralized To-Do List application built on the Ethereum blockchain using Solidity. Users can create and manage their tasks in a transparent and secure environment, leveraging the benefits of blockchain technology.
- Create Tasks: Users can add new tasks with details such as content, author, and timestamp.
- View Tasks: Retrieve details of individual tasks by their unique ID.
- Mark Tasks as Done: Update the status of a task to indicate completion.
- Solidity: Smart contract programming language used for writing the To-Do List contract.
- Ethereum: Blockchain platform for deploying and executing the smart contract.
- Truffle: Development framework for Ethereum that simplifies the deployment and testing of smart contracts.
- Node.js (version 12 or higher)
- Truffle (installed globally)
- Ganache or an Ethereum test network
-
Clone the repository:
git clone <repository-url> cd Dapp-todo
-
Install dependencies:
npm install
-
Compile the smart contracts:
truffle compile
-
Deploy the contracts to a local blockchain (Ganache):
truffle migrate
- To interact with the deployed contract, you can create a frontend using HTML/CSS/JavaScript or use Truffle Console for testing purposes:
truffle console
-
Create a new task:
await contractInstance.createTask("My first task", "YourName");
-
Get task details:
const task = await contractInstance.getTask(0); console.log(task);