Skip to content

A simple decentralized application (DApp) built on the Ethereum blockchain using Solidity smart contracts. The DApp allows users to vote for their favorite candidate in an election.

Notifications You must be signed in to change notification settings

Akkii4/ElectionDapp

Repository files navigation

ElectionDapp

Follow the steps below to download, install, and run this project.

Dependencies

Install these prerequisites to follow along with the tutorial.

Step 1. Clone the project

`git clone https://github.com/Akkii4/ElectionDapp

Step 2. Install dependencies

$ cd election
$ npm install

Step 3. Start Ganache

Open the Ganache GUI client that you downloaded and installed. This will start your local blockchain instance.

Step 4. Compile & Deploy Election Smart Contract

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

Step 5. Configure Metamask

  • 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

About

A simple decentralized application (DApp) built on the Ethereum blockchain using Solidity smart contracts. The DApp allows users to vote for their favorite candidate in an election.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages