jahani / todo-list-dapp

A todo list powered by Ethereum smart contracts (Solidity)

Home Page:https://todolistdapp.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ToDo List DApp

A todo list powered by Ethereum smart contracts. User can optionally deposit prize for each task which will get it back in his prize account or will be punished by not being able to withdraw the prize back to his account during the punishment period.

Contents

Installation

  1. Install required packages.
npm install -g ganache-cli truffle
  1. Run a ganache-cli service.
ganache-cli
## Or fill out .env file parameters for deploying contract on Rinkeby testnet
# cp sample.env .env
# nano .env
## Optionally you can run ganache localy with provided mnemonic phrase
# . .env
# ganache-cli --mnemonic "$MNEMONIC"
  1. Navigate to blockchain directory and type below command and enter.
cd blockchain
npm install
truffle migrate --reset --compile-all --network development
## Deploy project on Rinkeby testnet
# truffle migrate --reset --compile-all --network rinkeby
  1. Then navigate to client directory to enter below commands.
cd ../client
npm install
npm run serve
## Build production files
# npm run build
  1. Open http://localhost:8080/ URL to interact with the contract. MetaMask extension should be installed on your browser and you need to select the network which match with where the contract is being deployed. Furthermore you can import your generated accounts in Truffle to cover the fees.

Ideas

  • Add prize for other users tasks
  • Punish user by deducting a specified percent of prize and transfering it to contract owner address

About

A todo list powered by Ethereum smart contracts (Solidity)

https://todolistdapp.netlify.app/

License:MIT License


Languages

Language:Vue 38.5%Language:JavaScript 35.5%Language:Solidity 24.2%Language:HTML 1.5%Language:Shell 0.3%