{"id":21141237,"url":"https://github.com/shz-code/election-dapp","last_synced_at":"2025-10-13T03:43:21.137Z","repository":{"id":184837583,"uuid":"672190247","full_name":"shz-code/election-dapp","owner":"shz-code","description":"Ethereum DApp for an Election using Truffle, Ganache, and Solidity","archived":false,"fork":false,"pushed_at":"2023-07-30T17:27:11.000Z","size":261,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T15:04:27.650Z","etag":null,"topics":["blockchain","dapp","ethereum","ganache","metamask","truffle","web3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shz-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-07-29T08:11:28.000Z","updated_at":"2023-07-29T08:12:57.000Z","dependencies_parsed_at":"2024-11-20T07:25:44.419Z","dependency_job_id":"3a08d5eb-e585-4c0d-97c8-dfc046aabbb8","html_url":"https://github.com/shz-code/election-dapp","commit_stats":null,"previous_names":["shz-code/election-dapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shz-code/election-dapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Felection-dapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Felection-dapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Felection-dapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Felection-dapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shz-code","download_url":"https://codeload.github.com/shz-code/election-dapp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Felection-dapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013517,"owners_count":26085368,"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-10-13T02:00:06.723Z","response_time":61,"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","dapp","ethereum","ganache","metamask","truffle","web3"],"created_at":"2024-11-20T07:25:41.701Z","updated_at":"2025-10-13T03:43:21.099Z","avatar_url":"https://github.com/shz-code.png","language":"JavaScript","readme":"# Ethereum DApp for an Election using Truffle, Ganache, and Solidity\n\nThis is an example project for building a decentralized application (DApp) for an election on the Ethereum blockchain using *Truffle*, *Ganache*, and *Solidity*.\n\n# Prerequisites\nBefore you begin, make sure you have the following installed:\n\n- Node.js\n- Truffle\n- Ganache\n\n# Setup\n- Clone this repository to your local machine.\n- Install the necessary dependencies by running `npm install` in the project directory.\n- Start Ganache. This is necessary for starting a local blockchain network, which can be used for development and testing.\n- Compile the smart contracts by running truffle compile. This will compile the Solidity code in the **contracts/** directory.\n- Deploy the contracts to the local blockchain network by running truffle migrate. This will deploy the compiled contracts to the local blockchain network.\n- Start the development server by running `npm run dev`. This will start the web application on localhost:3000.\n\n# Usage\n\nOnce the development server is running, you can interact with the DApp by visiting localhost:3000 in your web browser. The DApp allows users to perform the following actions:\n\n- View the list of candidates in the election. In this example project 2 candidates are listed.\n- Vote for a candidate in the election.\n- View the total number of votes for each candidate.\n\n# Testing\nYou can run the test suite by running truffle test. This will run the tests in the **test/** directory.\n\n\n## Acknowledgements\nInspired from\n - [How to Build Ethereum Dapp](https://youtu.be/3681ZYbDSSk)\n\n# License\nThis project is licensed under the `MIT License`.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshz-code%2Felection-dapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshz-code%2Felection-dapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshz-code%2Felection-dapp/lists"}