Most existing E-Voting systems are based on centralized servers where the voters must trust the organizing authority for the election process and the integrity of the results. In this use case discussion, we will implements a decentralized trustless voting platform on Ethereum blockchain. The main features of this system include ensuring data integrity and transparency, and enforcing one vote per candidate with ensured privacy.
Install contract framework and private blockchain
Truffle and Ganache can be installed as a node module.
$ npm install -g truffle
$ npm install -g ganache-cli
ganache-cli --seed test
$ truffle test
$ truffle migrate
Install the node dependencies.
npm install
Run the app in the development mode.
npm start
Open http://localhost:8080 to view it in the browser.
Finally, the build for the production can also be generated
npm build