jbl31 / voting-system

blockchain voting system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project description

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.

How to install an run

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

Testing:

To run the unit tests, run:

npx hardhat test

Coverage

To check the test coverage, run:

npx hardhat coverage

Badges

Add badges from somewhere like: shields.io MIT License GPLv3 License AGPL License

About

blockchain voting system

License:Apache License 2.0


Languages

Language:JavaScript 55.2%Language:Solidity 44.8%