Blockchain-voting

alt text

Usage

  1. Install npm package manager and node : sudo apt install nodejs , sudo apt install npm
  2. Install truffle : npm install -g truffle
  3. Install Ganache : https://www.trufflesuite.com/ganache
  4. Run truffle compile from the project directory in terminal
  5. Start the Ganache and choose Quickstart Ethereum
  6. Make sure that the local host url on Ganache and in truffle-config.js is same.
  7. Then on terminal run truffle test
  8. Then run truffle migrate --reset
  9. Then run npm run dev. This will start the project in the browser
  10. Make sure that your metamask is connected to the site (Import accounts from Ganache blockchain into metamask).