d0ndada / dApp-todo-list

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blockchain-based TODO List with Ganache

A decentralized application (DApp) that provides a simple TODO list, backed by Ethereum smart contracts. This DApp communicates with a smart contract deployed on a local blockchain managed by Ganache.

Screenshot of the Todo DApp

πŸ›  Prerequisites

Ganache - Personal blockchain for Ethereum development Metamask - Crypto wallet & gateway to blockchain apps Node.js - JavaScript runtime

πŸš€ Getting Started

  1. Setup Ganache Launch Ganache and initiate a local blockchain. Remember your RPC server details.

  2. Deploy the Smart Contract Navigate to the repo's root:

bash

truffle migrate --reset

This deploys the smart contract to the local Ganache blockchain.

  1. Update ABI and Contract Address Post-deployment, make sure to update TODO_LIST_ABI and TODO_LIST_ADDRESS with the new contract's ABI and address respectively.

  2. Setup Metamask Install and launch MetaMask. Connect it to your local Ganache blockchain using Ganache's RPC URL. Import a Ganache account into MetaMask with the account's private key.

  3. Running the DApp bash

cd todo
npm install
npm start

Open a browser, access the application, connect via MetaMask, and manage your TODOs!

πŸ”„ Usage

Add TODOs: Use the input field. Mark TODOs: Check as completed. Remove TODOs: Delete as required. Filter TODOs: Filter by A-Z.

🀝 Contributing

Contributions are welcome! Please see our contributing guidelines for more details.

About

License:MIT License


Languages

Language:JavaScript 91.4%Language:HTML 5.7%Language:Solidity 2.9%