{"id":21361143,"url":"https://github.com/kaymen99/election-dapp","last_synced_at":"2025-06-30T15:35:44.573Z","repository":{"id":143361502,"uuid":"468114818","full_name":"kaymen99/Election-Dapp","owner":"kaymen99","description":"A Decentralized Blockchain Voting/Election Application","archived":false,"fork":false,"pushed_at":"2022-09-08T02:11:55.000Z","size":83,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T11:36:21.737Z","etag":null,"topics":["blockchain","brownie","decentralized-applications","election","ethereum","smart-contracts","solidity","voting-application"],"latest_commit_sha":null,"homepage":"","language":"Python","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/kaymen99.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":"2022-03-09T22:43:24.000Z","updated_at":"2025-02-26T22:07:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3407a4c-b89a-457a-b017-a528ace2aaf3","html_url":"https://github.com/kaymen99/Election-Dapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kaymen99/Election-Dapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaymen99%2FElection-Dapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaymen99%2FElection-Dapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaymen99%2FElection-Dapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaymen99%2FElection-Dapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaymen99","download_url":"https://codeload.github.com/kaymen99/Election-Dapp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaymen99%2FElection-Dapp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262801396,"owners_count":23366554,"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","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","brownie","decentralized-applications","election","ethereum","smart-contracts","solidity","voting-application"],"created_at":"2024-11-22T06:08:46.023Z","updated_at":"2025-06-30T15:35:44.564Z","avatar_url":"https://github.com/kaymen99.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Election-Dapp\n\n\n\n## Overview:\n\nA Decentralized Voting Application built for EVM compatible blockchains (ethereum, polygon, avalanche,...), it has the following features :\n\n\u003ch3\u003eAdministation functions: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAdding new candidates\u003c/li\u003e\n  \u003cli\u003eOpening the voting for a giver duration \u003c/li\u003e\n  \u003cli\u003eClosing the election after the predermined voting period \u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch3\u003eMain functions: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAllow user to vote only once for a choosen candidate\u003c/li\u003e\n  \u003cli\u003eDetermine the winner based on highest votes count \u003c/li\u003e\n  \u003cli\u003eGive a complete list of all candidates with their data (id, name, votes count) \u003c/li\u003e\n\u003c/ul\u003e\n\n\n### Installation \u0026 Setup:\n\n1. Installing Brownie: Brownie is a python framework for smart contracts development,testing and deployments. It's quit like [HardHat](https://hardhat.org) but it uses python for writing test and deployements scripts instead of javascript.\n   Here is a simple way to install brownie.\n   ```sh\n    pip install --user pipx\n    pipx ensurepath\n    # restart your terminal\n    pipx install eth-brownie\n   ```\n   Or if you can't get pipx to work, via pip (it's recommended to use pipx)\n    ```sh\n    pip install eth-brownie\n    ```\n   Install [ganache-cli](https://www.npmjs.com/package/ganache-cli): \n   ```sh\n    npm install -g ganache-cli\n    ```\n   \n2. Clone the repo:\n   ```sh\n   git clone https://github.com/kaymen99/Election-Dapp.git\n   cd Election-Dapp\n   ```\n### How to deploy:\n\nTo deploy the Election contract on development network, run the command :\n   ```sh\n   brownie run scripts/deploy_election.py\n   ```\nTo deploy on real network/testnets, run the command :\n   ```sh\n   brownie run scripts/deploy_election.py --network=\u003cnetwork name\u003e\n   ```\n\n### Testing:\n\nThe tests for the Election smart contract can be found in the tests folder, you can run all the tests by :\n   ```sh\n   brownie test\n   ```\nOr you can test each function individualy:\n   ```sh\n   brownie test -k \u003cfunction name\u003e\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaymen99%2Felection-dapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaymen99%2Felection-dapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaymen99%2Felection-dapp/lists"}