{"id":18657105,"url":"https://github.com/qharny/e-voting","last_synced_at":"2026-04-28T18:06:28.040Z","repository":{"id":258462208,"uuid":"864382647","full_name":"Qharny/E-voting","owner":"Qharny","description":"A console-based electronic voting system implemented in Dart. ","archived":false,"fork":false,"pushed_at":"2024-10-17T03:41:26.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T15:10:17.481Z","etag":null,"topics":["cli","dart","e-voting","file-io","json","realtime-results"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/Qharny.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2024-09-28T04:40:30.000Z","updated_at":"2024-10-17T13:23:44.000Z","dependencies_parsed_at":"2024-10-19T05:40:36.452Z","dependency_job_id":"56dd051c-0a6f-456a-98f3-fbac11e1627d","html_url":"https://github.com/Qharny/E-voting","commit_stats":null,"previous_names":["qharny/e-voting"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qharny%2FE-voting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qharny%2FE-voting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qharny%2FE-voting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qharny%2FE-voting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Qharny","download_url":"https://codeload.github.com/Qharny/E-voting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239473863,"owners_count":19644787,"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":["cli","dart","e-voting","file-io","json","realtime-results"],"created_at":"2024-11-07T07:26:41.954Z","updated_at":"2025-11-05T21:30:28.645Z","avatar_url":"https://github.com/Qharny.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-Voting Platform\n\nA console-based e-voting platform implemented in Dart. This application provides a simple and secure way to conduct elections with separate interfaces for administrators and users.\n\n## Features\n\n- **Admin Functions**:\n  - Add candidates\n  - View list of candidates\n  - Print election results\n\n- **User Functions**:\n  - Register as a voter\n  - View list of candidates\n  - Cast a vote (one-time only)\n  - Print election results\n\n- **General Features**:\n  - Secure voting process\n  - Unique ID generation for users\n  - Persistent storage of candidates and users\n  - Real-time result calculation and display\n\n## Prerequisites\n\n- Dart SDK (version 2.12.0 or higher)\n\n## Setup\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/Qharny/E-voting\n   cd e-voting\n   ```\n\n2. Install dependencies:\n   ```\n   dart pub get\n   ```\n\n## Project Structure\n\n```\ne_voting_platform/\n├── bin/\n│   └── main.dart\n├── lib/\n│   ├── models/\n│   │   ├── candidate.dart\n│   │   └── user.dart\n│   ├── services/\n│   │   ├── admin_service.dart\n│   │   ├── user_service.dart\n│   │   └── storage_service.dart\n│   └── utils/\n│       └── id_generator.dart\n├── pubspec.yaml\n└── README.md\n```\n\n## Running the Application\n\nTo start the e-voting platform, run the following command in the project root:\n\n```\ndart run bin/main.dart\n```\n\n## Usage\n\n1. **Main Menu**:\n   - Choose between Admin mode, User mode, printing results, or exiting the application.\n\n2. **Admin Mode**:\n   - Add new candidates\n   - View the list of candidates\n   - Print current election results\n\n3. **User Mode**:\n   - Register as a new voter (you'll receive a unique ID)\n   - View the list of candidates\n   - Cast your vote\n   - Print current election results\n\n## Data Persistence\n\nThe application uses JSON files to store data:\n- `candidates.json`: Stores information about candidates and their vote counts\n- `users.json`: Stores registered user information\n\nThese files are created in the project root directory when the application is first run.\n\n## Contributing\n\nContributions to improve the e-voting platform are welcome. Please feel free to submit a Pull Request.\n\n## License\n\nThis project is open source and available under the [MIT License](https://github.com/Qharny/MicroLang/blob/main/licence).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqharny%2Fe-voting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqharny%2Fe-voting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqharny%2Fe-voting/lists"}