{"id":23178538,"url":"https://github.com/pushkingav/rest-voting","last_synced_at":"2025-04-05T02:15:59.854Z","repository":{"id":42552121,"uuid":"155513014","full_name":"pushkingav/rest-voting","owner":"pushkingav","description":"The voting system for restaurants","archived":false,"fork":false,"pushed_at":"2022-12-15T23:35:25.000Z","size":206,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T10:24:31.527Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/pushkingav.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}},"created_at":"2018-10-31T07:00:08.000Z","updated_at":"2019-11-07T13:17:19.000Z","dependencies_parsed_at":"2023-01-29T05:15:35.165Z","dependency_job_id":null,"html_url":"https://github.com/pushkingav/rest-voting","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushkingav%2Frest-voting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushkingav%2Frest-voting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushkingav%2Frest-voting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushkingav%2Frest-voting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pushkingav","download_url":"https://codeload.github.com/pushkingav/rest-voting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276187,"owners_count":20912288,"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":[],"created_at":"2024-12-18T07:11:42.197Z","updated_at":"2025-04-05T02:15:59.835Z","avatar_url":"https://github.com/pushkingav.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Task description**\n\nBuild a voting system for deciding where to have lunch.\n\n* 2 types of users: admin and regular users.\n* Admin can input a restaurant and it's lunch menu of the day (2-5 items usually, just a dish name and price).\n* Menu changes each day (admins do the updates).\n* Users can vote on which restaurant they want to have lunch at.\n* Only one vote counted per user.\n* If user votes again the same day:\n  * If it is before 11:00 we assume that he changed his mind.\n  * If it is after 11:00 then it is too late, vote can't be changed\n\nEach restaurant provides new menu each day.\n\nAs a result, provide a link to github repository.\n\nIt should contain the code and README.md with API documentation and curl commands to get data for voting and vote.\n\nP.S.: Make sure everything works with latest version that is on github :)\n\nP.P.S.: Assume that your API will be used by a frontend developer to build frontend on top of that.\n\n\n**Developer's remarks**\n* You can find the REST API Documentation including curl commands in the `target/generated-docs/api-guide.html` after running tests and the \nmvn package task. For example it is placed at the root folder also. \n* The `last.voting.time` and other props described here are set in the `src\\main\\resources\\application.properties`.\n* The `last.voting.time` is given in UTC and is proceeded in UTC. This prop is mentioned at the task description under the point \"If user votes again the same day\".\n* Please set the `application.http.port` property in the `application.properties` according to your tomcat settings. This is needed for \ntests and rest api documentation that is generated automatically on every package task. \n* There is a directory of dishes in db. See the DISHES table.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushkingav%2Frest-voting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushkingav%2Frest-voting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushkingav%2Frest-voting/lists"}