Skip to content

This is my first Dapp (Ethereum Blockchain App).This one implements a Decentralized voting system using truffle framework.

License

Notifications You must be signed in to change notification settings

jeswincyriac/Election-Dapp

Repository files navigation

Decentralized Voting App

Decentralized apps are gaining more and more attention as technology and hardware develops.Here is a decentralized app(Dapp) for election purposes.The smart contract aloows each account to vote once for the candidate of their choice.The app is built over ethereum blockchain using truffle framework.

Getting Started

git clone https://github.com/jeswincyriac/Election-Dapp.git This copies the code to your local machine.

Prerequisites

  • truffle framework npm install -g truffle
  • ganache :- Local blockchain for development puposes.
  • metamask :- Connects your blockchain to browser.

Installing

  • cd into the Election-Dapp directory and run npm install

Deploying

  • Fire up ganache blockchain by going to the downloaded folder and running ./filename.Appimage
  • truffle migrate --reset :-Deploys the smartcontract to block chain.
  • npm run dev :- Starts the server for frontend.
  • Open browser and go to localhost:3000 and make an account in metamask.
  • select custom RPC Network and enter the url shown in ganache.Reload the page.
  • Import the other accounts to metamask from ganache using private key.

Final output

In this gif the user votes for candidate2 and the votecount increases from 4 to 5.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

This is my first Dapp (Ethereum Blockchain App).This one implements a Decentralized voting system using truffle framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published