To test and deploy the smart contract follow the steps below.
- Install Node.js
- Clone the repository:
git clone https://github.com/algoexpert-io/Decentralized-Voting.git
cd Decentralized-Voting
cd backend
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 react_frontend
npm install
npm start