GithubHelp home page GithubHelp logo

d-vote's Introduction

ABOUT

A blockchain-based voting system that preserves voter privacy and increases accessibility, while keeping the voting system transparent, secure, and cost-effective. The system implements a voting framework that utilizes ethereum’s blockchain and smart contracts to achieve voter administration and auditable voting records. The implementation was deployed on ethereum’s test network to demonstrate usability, scalability, and efficiency.

Pre requisites:

  1. Node JS
  2. Ganache
  3. Metamask extension in the browser, preferably chrome.

SET UP INSTRUCTIONS

Open ganache and select quick start ethereum.

Open your browser and configure metamask. Create a wallet and store yourSecret Recovery Phrase in a safe place.

Connecting metamask and ganache

  1. In metamask, go to settings > networks > add network. You can also get to this by clicking the metamask extension pinned on your browser > clicking the profile picture > settings > networks > add network
  2. Give your network any name of choice.
  3. For New RPC URL go to ganache where you'll copy the RPC server url and paste in Metamask.
  4. Chain ID for ganache is 1337.
  5. You can name currency symbol as "ETH" and save.

Importing an account from ganache to metamask

  1. Open ganache and select show keys on any account. The show keys button is the key icon.
  2. Copy the private key and click done.
  3. Open the metamask menu which can be accessed by clicking the profile picture and select import account.
  4. Paste the private key copied from ganache and click import.

Starting project commands

npm i

truffle compile

truffle migrateortruffle migrate --reset for subsequent runs

npm start

The project will open in the browser and metamask will ask you to select an account. Select the account we had imported earlier.

d-vote's People

Contributors

bhardwaj-shubham avatar

Watchers

 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.