Skip to content

Blockchain-Vidyaalay/Voting-Dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Voting-Dapp

Blockchain can be used in developing many real life application that can solve the issue of trustability. Voting system is one of them. We all know a fair Voting System is an important part on a Democratic Country. Hence in this project we have tried to implement a simple voting solution using Blockchain technology.

Pre-requestis

  1. Npm and node should be installed
  2. truffle
  3. Metamask extension in the browser

Quick Start

Steps to compile the contract

  1. Clone the repo
  2. cd Voting-dapp/contract-folder
  3. Install dependencies: npm install
  4. Run truffle in a terminal: truffle develop
  5. Compile the code: compile
  6. Migrate the code: migrate --reset

Steps to run the forntend application

  1. Copy and paste the json file generated after migrating the contract in the src directory.
  2. Install dependencies: npm install
  3. Make sure truffle is running in a terminal. If not then run truffle with the command: truffle develop
  4. Open metamask and create accounts for voters and candidates
  5. Run the react app: npm start

Deploy smart contract on testnet:

Refer to this video for deploying smart contract on testnet: https://youtu.be/L1L050u7j2M

Note:

You can open and paste the code in Remix and test all the functions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published