{"id":28581363,"url":"https://github.com/supriya811106/blockchain-based-voting-application","last_synced_at":"2026-02-26T12:03:10.757Z","repository":{"id":287514934,"uuid":"964980087","full_name":"supriya811106/Blockchain-Based-Voting-Application","owner":"supriya811106","description":"A blockchain-based voting system built on Ethereum to ensure transparency, security, and accessibility. It leverages smart contracts, Ethers.js, and MetaMask to allow users to cast and verify votes on the blockchain.","archived":false,"fork":false,"pushed_at":"2025-04-12T08:58:55.000Z","size":2285,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T10:43:34.671Z","etag":null,"topics":["blockchain","ethereum","ethersjs","nodejs","voting-application"],"latest_commit_sha":null,"homepage":"https://blockchain-based-voting-application-ruu5.onrender.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/supriya811106.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-12T06:32:10.000Z","updated_at":"2025-05-31T04:32:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"2f1f7d86-45eb-4679-ac30-3d4bba496408","html_url":"https://github.com/supriya811106/Blockchain-Based-Voting-Application","commit_stats":null,"previous_names":["supriya811106/blockchain-based-voting-application"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/supriya811106/Blockchain-Based-Voting-Application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supriya811106%2FBlockchain-Based-Voting-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supriya811106%2FBlockchain-Based-Voting-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supriya811106%2FBlockchain-Based-Voting-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supriya811106%2FBlockchain-Based-Voting-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supriya811106","download_url":"https://codeload.github.com/supriya811106/Blockchain-Based-Voting-Application/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supriya811106%2FBlockchain-Based-Voting-Application/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274949545,"owners_count":25379446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","ethereum","ethersjs","nodejs","voting-application"],"created_at":"2025-06-11T04:17:15.805Z","updated_at":"2026-02-26T12:03:10.704Z","avatar_url":"https://github.com/supriya811106.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Decentralized Voting Application\n\n![Image](https://github.com/user-attachments/assets/5572b30c-47c5-431d-9c51-6c6a1ce0644d)\n\nA blockchain-based voting system built on Ethereum to ensure transparency, security, and accessibility. It leverages **smart contracts**, **Ethers.js**, and **MetaMask** to allow users to cast and verify votes on the blockchain.\n\n🔗 **Live Demo**: [https://blockchain-based-voting-application-ruu5.onrender.com/](https://blockchain-based-voting-application-ruu5.onrender.com/)\n\n---\n\n## Features\n\n- Secure, tamper-proof voting via smart contracts\n- MetaMask integration for user authentication and transaction signing\n- Live vote status and result updates\n- Simple UI served via Express server\n\n---\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- **[Node.js](https://nodejs.org/)** – to run the backend server\n- **[MetaMask](https://metamask.io/)** – browser extension for Ethereum wallet interaction\n- **Ethereum Account** – for deploying and interacting with smart contracts\n- **Ethers.js** – for blockchain communication\n- **Solidity Compiler** – (optional) for contract compilation\n\n---\n\n## Setup Instructions\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/supriya81106/Blockchain-Based-Voting-Application.git\ncd Blockchain-Based-Voting-Application\n```\n\n### 2. Install Dependencies\n\n```bash\nnpm install express ethers dotenv express-fileupload\n```\n\n### 3. Configure Environment Variables\n\nCreate a `.env` file in the root with the following content:\n\n```env\nAPI_URL=https://\u003cyour_ethereum_node_api\u003e\nPRIVATE_KEY=\u003cyour_private_key\u003e\nCONTRACT_ADDRESS=\u003cdeployed_contract_address\u003e\nPORT=3000\n```\n\n\u003e ⚠**Never expose your private key publicly.** Use environment variables securely.\n\n### 4. Start the Server\n\n```bash\nnode index.js\n```\n\nYour app will run at `http://localhost:3000`\n\n---\n\n## Usage Guide\n\n### Connect MetaMask\n\n- Click the **\"Connect MetaMask\"** button on the homepage.\n- Approve the connection request in your MetaMask wallet.\n\n### Cast a Vote\n\n- Enter the **candidate index** and click **\"Cast Vote\"**.\n- MetaMask will prompt you to confirm the transaction.\n\n### Check Voting Status\n\n- Click the **\"Check Voting Status\"** button to fetch the latest results from the blockchain.\n\n---\n\n## Smart Contract Features\n\n- **Add/Remove Candidates** – Built into the `voter.sol` contract\n- **Vote Recording** – Immutable and secure\n- **Result Retrieval** – Real-time updates\n\n---\n\n## Troubleshooting\n\n- **MetaMask Not Connected**  \n  → Ensure MetaMask is installed and you're connected to the correct network.\n\n- **Contract Not Working**  \n  → Verify that `CONTRACT_ADDRESS` in `.env` matches the deployed contract.\n\n- **Transaction Errors**  \n  → Check for gas limits, correct private key, and enough ETH in your account.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupriya811106%2Fblockchain-based-voting-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupriya811106%2Fblockchain-based-voting-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupriya811106%2Fblockchain-based-voting-application/lists"}