/Ethereum_Voting_Application

Decentralized Ethereum Voting Application

Primary LanguageJavaScript

Dependencies

Install these prerequisites to follow along with the tutorial. See free video tutorial or a full explanation of each prerequisite.

Step 1. Clone the project

git clone https://github.com/VtpVlan-oo7/Ethereum_Voting_Application-.git

Step 2. Install dependencies

$ cd Ethereum_Voting_Application
$ npm install

Step 3. Start Ganache

Open the Ganache GUI client that you downloaded and installed. This will start your local blockchain instance. See free video tutorial for full explanation.

Step 4. Compile & Deploy Election Smart Contract

$ truffle migrate --reset You must migrate the Ethereum_Voting_Application smart contract each time your restart ganache.

Step 5. Configure Metamask

steps:

  • Unlock Metamask
  • Connect metamask to your local Etherum blockchain provided by Ganache.
  • Import an account provided by ganache.

Step 6. Run the Front End Application

$ npm run dev Visit this URL in your browser: http://localhost:3000