/eth-vote

An Ethereum dApp for secure e-voting. Built using Solidity and Truffle Framework.

Primary LanguageJavaScriptMIT LicenseMIT

EthVote

An Ethereum dApp for secure e-voting. Built using Solidity and Truffle Framework.

Prerequisites

  • Ganache
  • MetaMask extension for Chrome
  • Connect MetaMask to Ganache:
    1. Start up Ganache and open a workspace
    2. Log in to MetaMask
    3. Create a new Custom RPC with the Ganache RPC Server URL: http://localhost:7545/ and connect
    4. Copy the private key for the first account on Ganache by clicking the key icon
    5. Import Account on MetaMask:
      • Select Type as Private Key and paste the private key copied previously
    6. You should now see the first account on Ganache with it's balance of 100 ETH, on MetaMask

Deployment

  • Fork this repo
git clone https://github.com/your-username/eth-vote
cd eth-vote
npm install -g truffle@5.0.2
npm install
truffle migrate --reset
npm run dev

Built With

  • Truffle - Development framework for Ethereum DApps
  • Solidity - High-level language for implementing Smart Contracts
  • Ganache - Personal Ethereum blockchain on your local machine
  • MetaMask - Allows the browser to interact with Ethereum blockchain and run DApps on the browser
  • web3.js - Library that allows the web app to interact with the Ethereum blockchain