- Nodejs 5.0+
- Truffle - 4.1.11
- Ganache
- MetaMask
npm install -g truffle
git clone git@github.com:naz46/blockchain-voting-dapp.git
cd blockchain-voting-dapp
npm install
npm run dev
In the other tab run 'truffle deploy --reset --network development'
-
Install Ganache and add a new workspace like this
- the name should be 'development'
- add truffle.js from the repo
-
Address information must be entered as a new Ethereum network after the installation of Metamask. You can find the address details in the truffle.js.
- An account needs to be added to the Ethereum network. This process is done with the test accounts given by Ganache so that the application can be tested. For the process of adding, it is necessary to click on the "import account" section in Figure 4.16 and enter the private key. Thus, the voting web page is never aware of your identity. Then connect the account to the web page.
- If you have any trouble stop all the servers, disconnect the account from the web page and reset the caches of the page.