GithubHelp home page GithubHelp logo

kulikov1026 / decentralised-platform-for-voting-in-elections-using-ethereum Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prateeksawhney97/decentralised-platform-for-voting-in-elections-using-ethereum

0.0 0.0 0.0 11.76 MB

The solution is to build a Decentralised application on Blockchain using Ethereum to eliminate the problem of Fake Votes, so that the voting system becomes transparent and unbiased. This is possible by Blockchain where we can keep the vote counts and other electoral data protected. The application would consist of a list of eligible candidates for election and we, as a voter, using our unique account having a unique private key, can cast a single vote to the candidate. This would require some ether, but the "Fake Votes" problem can be eliminated.

Home Page: https://www.youtube.com/watch?v=UlVT_Aiz4kk&feature=youtu.be

JavaScript 99.07% HTML 0.93%

decentralised-platform-for-voting-in-elections-using-ethereum's Introduction

Decentralised Platform for Voting in Elections Using Ethereum

Problem Statement:

Electoral fraud, sometimes referred to as Fake Votes, is illegal interference with the process of an election, either by increasing the vote share of the favoured candidate, depressing the vote share of the rival candidates, or both. The problem is to build a mechanism using which vote counterfeiting can be avoided and genuine votes are being considered.

Our Solution:

Our Solution is to build a Decentralised application on Blockchain using Ethereum, so that the voting system becomes transparent and unbiased. One of the key pillars of any healthy democratic system is the presence of independent and impartial elections in a nation. This is possible by Blockchain where we can keep the vote counts and other electoral data protected. The application would consist of a list of eligible candidates for election and we, as a voter, using our unique account having a unique private key, can cast a single vote to the candidate. This would require some ether, but the "Fake Votes" problem can be eliminated.

Tools Required:

Steps to run the project:

Step 1. Clone the project

Step 2. Install dependencies

$ npm install

Step 3. Start Ganache

Open the Ganache GUI client that you downloaded and installed. This will start your local blockchain instance.

Step 4. Compile & Deploy Election Smart Contract

$ truffle migrate --reset Migration of the election smart contract is necessary each time Ganache is restarted.

Step 5. Configure Metamask

  • Unlock Metamask
  • Connect metamask to your local Etherum blockchain provided by Ganache.
  • Import an account provided by ganache.

Step 6. Run the Front End Application

$ npm run dev Visit this URL in your browser: http://localhost:3000

Screenshots:

Initial Page showing the candidates for elections:

Screenshot from 2019-03-28 20-32-02

Selecting account from MetaMask and Ganache:

Screenshot from 2019-03-28 20-32-24 Screenshot from 2019-03-28 20-32-47

Importing account in MetaMask by Private key of any account from Ganache GUI.

Screenshot from 2019-03-28 20-32-58 Screenshot from 2019-03-28 20-33-29 Screenshot from 2019-03-28 20-33-39

Casting the vote from Imported Account:

Screenshot from 2019-03-28 20-33-51

Confirming the Transaction:

Screenshot from 2019-03-28 20-34-11

Transaction successful and Ether reduced in the account from which Vote has been given:

Screenshot from 2019-03-28 20-34-41 Screenshot from 2019-03-28 20-34-59

Performing a similar procedure for 2nd vote:

Screenshot from 2019-03-28 20-35-30 Screenshot from 2019-03-28 20-35-51 Screenshot from 2019-03-28 20-36-21

Server running in the background:

Screenshot from 2019-03-28 20-36-51

decentralised-platform-for-voting-in-elections-using-ethereum's People

Contributors

prateeksawhney97 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.