Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/wolivera/voting-dapp

A blockchain based multi-contract Voting Dapp
https://github.com/wolivera/voting-dapp

Last synced: about 1 month ago
JSON representation

A blockchain based multi-contract Voting Dapp

Lists

README

        



ZVoting is a Voting dApp that demonstrates a pure blockchain based Voting descentralized system. This app supports multiple ballots at the same time through the usage of a parent MainVoting contract and a particular Voting contract that keeps track of individual Votings and its options. A React UI is also present in this repo to interact with such Smart Contracts through Metamask.

## Build locally

All dependencies are contained within a single repo. Contracts are compiled and managed with Hardhat.

```shell
$ yarn install
```
Then open up a new window to start the blockchain

```shell
$ npx hardhat node
```
Deploy the contract
```shell
$ npx hardhat run scripts/deploy.js --network localhost
```

Start the dApp
```shell
$ yarn run dev
```

## Demo