A tutorial dapp for demonstrating a charity use case where proposals are made by individuals and based on them, people decide to donate on one.
- Verify your metamask is unlocked and connected to RINKEBY testnet
- OPEN Remix IDE goto run tab insure Environment is set to INJECTED WEB3
- Paste the charity360.sol code into IDE
- Edit line 39 donationTime i.e the time period for donation submission
- Edit line 43 propsalTime i.e the time period for propsal submission
- Compile contract
- deploy the contract
- Metamaks popup will open click on confirm
- wait for your transaction to be done and click on rinkeby link
- at rinkeby.etherscan copy your contract address [Contract 0x552da20d6124618dac20220cf80e75e0c8fe9e03 Created]
- open /Dapp/index.js
- edit line 1, paste your contract address (var contractAddr = "0x552da20d6124618dac20220cf80e75e0c8fe9e03");
- Don't make anyother changes.
- you must have xammp, wamp or any other local server
- host your app accoring to your server
- run the dapp
You'll see your dapp opens and the contdown timer will be running.