Setting up the Webserver:
- Clone this repository.
- Open terminal and run
npm install
. - Run
http-server -p5000 -c-1
to start the webserver. - Click http://127.0.0.1:5000/index.html to go to admin page.
- Click http://127.0.0.1:5000/index2.html to go to voting page.
Setting up the Contract:
- Start Ganache.
- Open Remix IDE and connet it to Ganache Provider or Inject Provider (If you have added the Ganache to metamask).
- Compile and deploy the contract using Remix IDE.
- Update the contract address in the
contract.js
file.
Demo Link: https://youtu.be/AersGu8K_Gs