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.git
cd voting-system
To install the dependencies, run:
npm install
In another terminal, run to launch the hardhat blockchain:
npx hardhat node
If you need to deploy the contract locally:
npx hardhat --network localhost run scripts/deploy-voting.js
To run the unit tests, run:
npx hardhat test
To check the test coverage, run:
npx hardhat coverage
Add badges from somewhere like: shields.io