{"id":17973298,"url":"https://github.com/ashishalf/votingsystem","last_synced_at":"2026-04-02T03:02:23.435Z","repository":{"id":259745636,"uuid":"879333964","full_name":"ashishalf/votingsystem","owner":"ashishalf","description":"This is a backend application for a voting system where users can vote for candidates. It provides functionalities for user authentication, candidate management, and voting.","archived":false,"fork":false,"pushed_at":"2024-10-27T16:30:21.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T14:22:22.901Z","etag":null,"topics":["api-rest","expressjs","mongodb","mongoose","nodejs","voting-system"],"latest_commit_sha":null,"homepage":"","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/ashishalf.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}},"created_at":"2024-10-27T16:26:40.000Z","updated_at":"2024-10-27T16:31:19.000Z","dependencies_parsed_at":"2024-10-27T19:33:16.609Z","dependency_job_id":"80b3d3ee-fbe1-48e4-bdbf-7ab725b721f5","html_url":"https://github.com/ashishalf/votingsystem","commit_stats":null,"previous_names":["ashishalf/votingsystem"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashishalf/votingsystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishalf%2Fvotingsystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishalf%2Fvotingsystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishalf%2Fvotingsystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishalf%2Fvotingsystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashishalf","download_url":"https://codeload.github.com/ashishalf/votingsystem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishalf%2Fvotingsystem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"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":["api-rest","expressjs","mongodb","mongoose","nodejs","voting-system"],"created_at":"2024-10-29T16:30:16.159Z","updated_at":"2026-04-02T03:02:23.409Z","avatar_url":"https://github.com/ashishalf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Voting System\n\nThis is a backend application for a voting system where users can vote for candidates. It provides functionalities for user authentication, candidate management, and voting.\n\n## Features\n\n- User sign up and login with Aadhar Card Number and password\n- User can view the list of candidates\n- User can vote for a candidate (only once)\n- Admin can manage candidates (add, update, delete)\n- Admin cannot vote\n\n## Technologies Used\n\n- Node.js\n- Express.js\n- MongoDB\n- JSON Web Tokens (JWT) for authentication\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   https://github.com/ashishalf/votingsystem\n\n\n# API Endpoints\n\n## Authentication\n\n### Sign Up\n- `POST /user/signup`: Sign up a user\n\n### Login\n- `POST /user/login`: Login a user\n\n## Candidates\n\n### Get Candidates\n- `GET /candidates`: Get the list of candidates\n\n### Add Candidate\n- `POST /candidates`: Add a new candidate (Admin only)\n\n### Update Candidate\n- `PUT /candidates/:id`: Update a candidate by ID (Admin only)\n\n### Delete Candidate\n- `DELETE /candidates/:id`: Delete a candidate by ID (Admin only)\n\n## Voting\n\n### Get Vote Count\n- `GET /candidates/vote/count`: Get the count of votes for each candidate\n\n### Vote for Candidate\n- `POST /candidates/vote/:id`: Vote for a candidate (User only)\n\n## User Profile\n\n### Get Profile\n- `GET /users/profile`: Get user profile information\n\n### Change Password\n- `PUT /users/profile/password`: Change user password\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashishalf%2Fvotingsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashishalf%2Fvotingsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashishalf%2Fvotingsystem/lists"}