This is a simple To-Do project, that can add task, mark tasks, and check history of user's tasks.
Technologies that was used in this project:
- backend, smart contract: Solidity, hardhat, ethers.js
- frontend: React.js
- Create .env with following variables
NETWORK=(which network).
INFURA_URL="https://sepolia.infura.io/v3/(YOUR-API-KEY)".
PRIVATE_KEY=(PRIVATE KEY OF YOUR METAMASK ACCOUNT).
ETHERSCAN_API=(API that you can get from etherscan.io).
OWNER=(YOUR METAMASK WALLET HASH).
- Install dependencies
npm i
- Compile contract using
npx hardhat compile
- Deploy hardhat to blockchain
npx hardhat run --network sepolia scripts/deploy.js
- Verify contract
npx hardhat verify --network sepolia {your contract address}
- Run server
npm start
Don't forget to add your contract address to contractAddress variable in Form.js and HistoryPage.js