How iamrakki/online_voting_system_using_blockchain works
Project type and purpose
• This is a full-stack web application that uses a private Ethereum‐style blockchain (via Truffle/Ganache) as its persistent store.
• Purpose: provide a secure, transparent, tamper-proof online voting system where votes are cast via a web UI, encrypted, recorded on the chain, and results displayed in real time.
File structure
• Top-level blockchain artifacts:
• contracts/ ← Solidity smart-contract source
• migrations/ ← Truffle deployment scripts
• build/contracts/ ← compiled ABIs and JSON definitions
• truffle-config.js ← network & compiler settings
• Web application server (Node/Express):
• routes/ ← HTTP route handlers for login, registration, dashboard, voting, results
• database.js ← Web3.js setup & helper functions for contract interaction
• Test suite:
• test/contest.js ← Mocha/Chai tests against smart contracts
• Auxiliary files:
• bs-config.js ← Browser-Sync configuration (live reload)
• package.json ← dependencies, start script (npm start)
README for additional insights
• Highlights blockchain for immutability, cryptographic vote encryption, and real-time result display.
• Tech stack: Ethereum/Truffle, Web3.js, Node.js/Express, cryptography libraries.