https://github.com/rohitroy-github/vite-voting-dapp
This is a voting dapp made using ViteJS and Hardhat environment.
https://github.com/rohitroy-github/vite-voting-dapp
ethersjs hardhat nodejs smart-contracts solidity vite vitejs web3
Last synced: 3 months ago
JSON representation
This is a voting dapp made using ViteJS and Hardhat environment.
- Host: GitHub
- URL: https://github.com/rohitroy-github/vite-voting-dapp
- Owner: rohitroy-github
- Created: 2023-05-12T06:13:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-04T08:31:10.000Z (3 months ago)
- Last Synced: 2025-04-04T09:30:53.610Z (3 months ago)
- Topics: ethersjs, hardhat, nodejs, smart-contracts, solidity, vite, vitejs, web3
- Language: JavaScript
- Homepage:
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Voting DApp (EVM-Based)
Voting DApp is a **decentralized voting application** built with **ViteJS** for a secure and transparent voting system.
Currently, the app operates on **Localhost** and the **Ethereum Sepolia Testnet** using Alchemy.
---
## Snapshots
|  |  |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|  | |---
## Tech Stack
### Frontend:
- **Vite JS** - Fast and modern frontend tooling
### Backend:
- **Node.js** - Server-side runtime
- **Hardhat** - Ethereum development framework
- **Metamask Wallet** - User authentication and transactions
- **Ethers.js** - Blockchain interaction library
- **Alchemy** - Web3 infrastructure provider---
## Localhost (Steps To Run / Execute)
### Backend (Solidity-Hardhat):
1. Navigate to the `backend` folder:
```sh
cd solidity-hardhat
```
2. Install dependencies:
```sh
npm install
```
3. Compile and deploy the contract:
```sh
npx hardhat compile
npx hardhat run scripts/deploy.js --network sepolia
```
4. Copy the **CONTRACT_ADDRESS** from the terminal output and paste it into `frontend/src/constants/constant.js`.### Frontend:
1. Navigate to the `frontend` folder:
```sh
cd frontend
```
2. Install dependencies:
```sh
npm install
```
3. Run the development server:
```sh
npm run dev
```---
## Project Status & Contributions
The project is complete but undergoing continuous improvements. Suggestions for enhancements are welcome!
If you like the project, leave a ⭐! 😊