This project is a Blockchain voting project and unit testing for Alyra's school project n°2. It use HardHat framework, Mocha and OpenZeppelin Helpers for testing purpose.
In a shell, clone the project:
git clone https://github.com/jbl31/voting-system.gitcd voting-systemTo install the dependencies, run:
npm installIn another terminal, run to launch the hardhat blockchain:
npx hardhat nodeIf you need to deploy the contract locally:
npx hardhat --network localhost run scripts/deploy-voting.jsTo run the unit tests, run:
npx hardhat testTo check the test coverage, run:
npx hardhat coverageAdd badges from somewhere like: shields.io