A Decentralized Voting App
To test and deploy the smart contract follow the steps below.
- Install Node.js
- Clone the repository:
git clone https://github.com/MuzamilJillani/DVotingApp.git
cd DVotingApp
cd back-end
npm install
- To test the contract run
npx hardhat test
- To deploy the contract to your
localhost
network do the following:npx hardhat node
npx hardhat run --network localhost ./script/deploy.js
cd front-end
npm install
npm start