How christo-kumar/fullstack-solidity-polling works
Project type and purpose
• This is a full-stack decentralized polling (voting) application (“FullStack-Solidity-Polling”).
• The frontend is a React single-page application. The “backend” is an Ethereum smart-contract project built with Hardhat (no traditional server).
• Users vote on a single-election ballot via a blockchain contract; all state is persisted on the Ethereum network.
File structure
• Top level:
• pollingapp/backend – Hardhat project (contracts, scripts, tests, config).
• pollingapp/frontend – React app (components, public assets, contract wrapper).
• pollingapp/scripts – helper scripts (setup.sh).
• Backend indicators: hardhat.config.js, contracts/, scripts/deploy.js, test/.
• Frontend indicators: package.json, src/, public/, components for AdminPanel and VotingPanel, a contract.js file for web3/ethers configuration.
README
• Confirms a full-stack decentralized polling application.
• No additional architecture notes; we infer interactions from file structure.
Detail
• Subcomponents: AdminPanel vs. VotingPanel in the UI.
• Where SingleElectionVoting.json (ABI) lives in the frontend.
• Hardhat config file as the bridge between scripts, tests, and the network.