This is a decentralized platform for voting in contests. The Owner of the smart contract posts the contestants' details, including their name, address, and voting symbol. Users on the network can vote for each contestant once using Metamask. EtherJS is used for interaction between the frontend and the smart contract.ReactJS is used for building the frontend, while Solidity is used for writing the smart contract. Hardhat is used for the local blockchain.
To get started with this project, you'll need to download the repository and set up a local environment.
Before you can set up a environment, you'll need to have NodeJS installed on your system. You can download it from the official website: https://nodejs.org/en/download
Before running dapp you need to run blockchain server by using below command in command prompt.It will show 20 addresses with private key
npx hardhat node
Note:dont close the command prompt.
npx hardhat run scripts/finaldeploy.js --network localhost
run the application by using command : npm start
HOME : Here user can vote the contesents .
ADMIN : Where the owner of the smart contract can post the details of contestents.
LIVE : Where everyone can see the live results of the contestents.
CHANGE : It is used to change the address of the wallet