Voting dApp hosted on private blockchain for a secure valid voting system
A voting dApp hosted on private truffle test network
Vote for a candidate by spending ETH creating a secure transaction voting history and a blockchain.
Spending ETH confirms the initiation of the Election.sol smart contract to run which is written to prevent illegitimate votes such as double voting.
Uses Ganche to generate ETH tokens and MetaMask chrome extention as a wallet to spend ETH in order to vote.
Election.sol Smart contract written in Solidity
Testing by Mocha
npm install
https://truffleframework.com/ganache
https://metamask.io/
(Note that PORT: 7545 is default)
truffle test
in the root directory folder.truffle migrate --reset
npm run dev
to run the program on a local server.The Election.sol smart contract only allows one unique account to vote to prevent multiple votes!
https://drive.google.com/open?id=1W89ISSUPkjKADE23FmMD21Nb8GHKIZ1g