Nothing Special   »   [go: up one dir, main page]

Skip to content

naz46/blockchain-voting-dapp

Repository files navigation

Ethereum voting dapp

Dependencies:

Setup

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'

Important Steps

  • Install Ganache and add a new workspace like this

    • the name should be 'development'
    • add truffle.js from the repo
    Screen Shot 2021-04-04 at 00 01 37
  • 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.

image27

  • 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. image20 image28

aa

  • If you have any trouble stop all the servers, disconnect the account from the web page and reset the caches of the page.

screen shot 2018-06-16 at 23 11 17

screen shot 2018-06-16 at 23 10 18