https://github.com/jayrajrodage/voting_dapp
This project is a web-based voting application that allows a chairperson to create and manage candidate data, and voters to cast their votes. The application uses React for the front-end, Solidity for the smart contract that runs on the Ethereum blockchain, and Ether.js to interact with the blockchain.
https://github.com/jayrajrodage/voting_dapp
blockchain javascript react smart-contracts solidity voting-application
Last synced: about 2 months ago
JSON representation
This project is a web-based voting application that allows a chairperson to create and manage candidate data, and voters to cast their votes. The application uses React for the front-end, Solidity for the smart contract that runs on the Ethereum blockchain, and Ether.js to interact with the blockchain.
- Host: GitHub
- URL: https://github.com/jayrajrodage/voting_dapp
- Owner: Jayrajrodage
- Created: 2023-02-21T07:42:11.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-27T18:30:37.000Z (over 3 years ago)
- Last Synced: 2025-03-25T13:12:33.584Z (over 1 year ago)
- Topics: blockchain, javascript, react, smart-contracts, solidity, voting-application
- Language: JavaScript
- Homepage: https://votingdapp-jayrajrodage.vercel.app/
- Size: 245 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Voting dapp
This project is a web-based voting application that allows a chairperson to create and manage candidate data, and voters to cast their votes. The application uses React for the front-end, Solidity for the smart contract that runs on the Ethereum blockchain, and Ether.js to interact with the blockchain.
# Features
Chairperson can create and manage candidate data, including candidate ID, name, and vote count.
Voters can view the list of candidates and their information.
Voters can cast their vote for a candidate using their unique ID.
Chairperson can clear the voting data after the deadline is completed to start another voting.
# Technologies Used
1.solidity
2.Ether.js
3.Tailwindcss
4.Remix.IDE
5.React
6.Web3
7.MetaMask
# Requirements
Node.js v12 or later
MetaMask browser extension
Installation
Clone the repository.
Install dependencies using npm install.
Compile and deploy the smart contract to your local blockchain using Remix.IDE:
Start the development server using npm start.
# Usage
Make sure MetaMask is connected to your local blockchain and has an account with some ether.
Access the application at https://votingdapp-jayrajrodage.vercel.app
Chairperson should create the candidate data by clicking the "Create Candidate" button and filling in the form.
Voters can view the list of candidates and their information on the home page.
Voters can cast their vote for a candidate using their unique ID by clicking the "Vote" button and entering their ID.
After the deadline is completed, the chairperson can clear the voting data by clicking the "Clear Data" button.