A decentralized application that allows users to vote in polls using Ethereum blockchain. The votes are stored on-chain, ensuring transparency and security.
- Decentralized voting on the Ethereum blockchain
- Secure, immutable, and transparent results
- Simple and responsive front-end interface
- Ethereum for blockchain interactions
- Solidity for smart contract development
- Web3.js for interacting with Ethereum from the front-end
- HTML/CSS/JavaScript for the front-end
/decentralized-poll-app │ ├── /contracts/ # Smart contract files │ └── pollcontract.sol # Polling contract ├── /src/ # App source code │ ├── app.js # Interacts with the smart contract │ ├── index.html # Main HTML file │ ├── pollcard.js # Renders individual poll cards │ ├── styles.css # App styling │ └── index.js # Initializes the app └── package.json # Dependencies
- Clone the repo:
git clone https://github.com/yourusername/decentralized-poll-app.git - Install dependencies:
npm install(optional for local dev) - Deploy the
pollcontract.solsmart contract on Ethereum - Connect MetaMask to your Ethereum network
- Open
index.htmlin your browser
- Users can view and vote on polls
- All votes are stored securely on the Ethereum blockchain
- Results are displayed in real-time
- Immutable and transparent
- Tamper-proof voting results
- Accessible to all users
MIT License