A simple decentralized voting system built with ⚙️ Solidity smart contracts and a ☕ Java + Spring Boot backend using Web3j.
- 📄
contracts/– Solidity contract source. - 💻
java-backend/– Java backend with Spring Boot & Web3j.
▶️ Run Ganache or a local Ethereum node.- 🚀 Deploy
Voting.sol(e.g., via Remix). - 📝 Note the deployed contract address.
- 🔑 Update
VotingServicewith your private key & contract address. - 📦 In
java-backend/:mvn web3j:generate-sources mvn spring-boot:run