Final Year Project (MCS 2017-2018)
Project Title: Ethereum Blockchain - Voting Application
Supervisor: Sir Khalid Jamal
Members: Riaz Ahmed, Ayesha Qureshi
- Install Node LTS 8.x.x (https://nodejs.org/en/download/)
- Install NPM (if you have installed node it comes with NPM)
- Install Application dependencies
npm install
- Install Truffle (https://truffleframework.com/truffle)
- Install Ganache (https://truffleframework.com/ganache)
- Install Metamask (https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=en)
Please follow the steps given below, do it in sequence.
Open Ganache and set accounts limit to 100
In the base directory of the project, do the following:
truffle console
test
It will pass 3 tests
After passing the test quit truffle console then migrate the contract using truffle migrate --reset
After migrating contract, run command npm run dev
The server will run the application on your browser. Login into metamask and connect with local server. You can get RPC server address from Ganache.
After connecting with Ganache get private key from ganache accounts (click on key icon) and put this in metamask in the import account private key and refresh the page.
Once the account is imported select contestant and caste your vote and for new vote import new account follow step 6