{"id":19469705,"url":"https://github.com/niloth-p/voteapplication","last_synced_at":"2026-04-29T14:37:19.447Z","repository":{"id":130152743,"uuid":"286060913","full_name":"Niloth-p/VoteApplication","owner":"Niloth-p","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-08T23:13:55.000Z","size":2338,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T13:20:56.427Z","etag":null,"topics":["django","ip-address","rest-api","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Niloth-p.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}},"created_at":"2020-08-08T14:41:31.000Z","updated_at":"2023-12-13T16:15:25.000Z","dependencies_parsed_at":"2023-04-14T20:35:01.137Z","dependency_job_id":null,"html_url":"https://github.com/Niloth-p/VoteApplication","commit_stats":null,"previous_names":["niloth-p/voteapplication"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Niloth-p/VoteApplication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niloth-p%2FVoteApplication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niloth-p%2FVoteApplication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niloth-p%2FVoteApplication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niloth-p%2FVoteApplication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Niloth-p","download_url":"https://codeload.github.com/Niloth-p/VoteApplication/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niloth-p%2FVoteApplication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32429363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["django","ip-address","rest-api","voting-application"],"created_at":"2024-11-10T18:53:35.146Z","updated_at":"2026-04-29T14:37:19.417Z","avatar_url":"https://github.com/Niloth-p.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Setup Instructions: Running the Project Locally\n\nInstall the requirements:  \n`pip install -r requirements.txt`  \nSetup the local configurations:  \n`cp .env.example .env`  \nCreate the database:  \n`python manage.py migrate` \nFinally, run the development server:  \n`python manage.py runserver`  \nThe project will be available at 127.0.0.1:8000/voteapp/\n\n### Usage:\n\n* Go to 127.0.0.1:8000/voteapp/  \n* Click on any of the candidates' names to view their profile page  \n* Go back to the voting page\n* Choose a candidate from the radio buttons, and click submit  \n* This will take you to the results page\n* To clear your IP and re-vote, run the command:\n`python manage.py shell \u003c ClearIP.py`\n\n### Features:\n\n* Voting - once per IP \n* Viewing candidates' profiles\n* Viewing results\n* Admin actions\n    - Add a new candidate\n    - Delete an existing candidate\n* Candidate actions\n    - Edit details\n\n#### Detailed features\n\n* A clear_IP script for back-end testers to delete their IP from the database quickly to test re-voting.\n* Back button of browser will redirect the voting page to the results page, after voting.\n* Trying to get the details of a non-existent candidate returns 404.\n* All the voters' IPs are stored in the database.\n* The admins are given an authorization code, which needs to be present in the POST request, else access will be denied.\n* The candidates are given a different authorization code to only edit the details.\n\n### Settings variables\n\n* Admin authorization code\n* Candidate Authorization code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniloth-p%2Fvoteapplication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniloth-p%2Fvoteapplication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniloth-p%2Fvoteapplication/lists"}