{"id":17322376,"url":"https://github.com/jenting/voting-topic","last_synced_at":"2026-01-12T11:18:49.934Z","repository":{"id":129093810,"uuid":"132150101","full_name":"jenting/voting-topic","owner":"jenting","description":"A website allow users to create new topic and voting","archived":false,"fork":false,"pushed_at":"2025-09-22T11:46:38.000Z","size":1330,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-22T13:19:37.861Z","etag":null,"topics":["side-project","topic","voting"],"latest_commit_sha":null,"homepage":"","language":"Go","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/jenting.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-05-04T14:24:15.000Z","updated_at":"2025-09-22T11:46:40.000Z","dependencies_parsed_at":"2025-01-13T12:29:07.248Z","dependency_job_id":"e9a9e313-940a-41c2-8743-becc60f58d91","html_url":"https://github.com/jenting/voting-topic","commit_stats":null,"previous_names":["hsiaoairplane/voting-topic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jenting/voting-topic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenting%2Fvoting-topic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenting%2Fvoting-topic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenting%2Fvoting-topic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenting%2Fvoting-topic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenting","download_url":"https://codeload.github.com/jenting/voting-topic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenting%2Fvoting-topic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["side-project","topic","voting"],"created_at":"2024-10-15T13:41:57.207Z","updated_at":"2026-01-12T11:18:49.885Z","avatar_url":"https://github.com/jenting.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# voting-topic\n\nA website that allows user to create new topic and voting (upvote or downvote).\n\n[![Build Status](https://travis-ci.com/jenting/voting-topic.svg?branch=master)](https://travis-ci.com/jenting/voting-topic)\n\n## Demo site on [Heroku](https://www.heroku.com/)\n\nDemo site \u003chttps://frozen-anchorage-68159.herokuapp.com/\u003e\n\n## Language\n\n* F/E: HTML + jQuery\n\n* B/E: Golang (golang \u003e= 1.11)\n\n## Setup\n\n* Download the project\n\n```sh\ngo get github.com/jenting/voting-topic\n```\n\n* Compile and run the project\n\n```sh\n./run.sh\n```\n\n## RESTful APIs\n\n* CRUD\n\n|    Method   |     URL     | Description |\n|-------------|-------------|-------------|\n| GET | \u003chttps://frozen-anchorage-68159.herokuapp.com/toptopic\u003e | Query top 20 topic informations. |\n| GET | \u003chttps://frozen-anchorage-68159.herokuapp.com/topic?uid={uid}\u003e | Query topic information with specific uid. |\n| POST | \u003chttps://frozen-anchorage-68159.herokuapp.com/topic\u003e | Create topic with JSON body. |\n| PUT | \u003chttps://frozen-anchorage-68159.herokuapp.com/topic/upvote\u003e | Update upvote by 1 with specific uid in JSON body. |\n| PUT | \u003chttps://frozen-anchorage-68159.herokuapp.com/topic/downvote\u003e | Update downvote by 1 with specific uid in JSON body. |\n\n* HTTP POST/PUT JSON body\n\n|    Field     |   Type(Length)    |    Description  |\n|--------------|-------------------|-----------------|\n|     uid      |  Version 4 UUID   |       UUID      |\n|     name     |  String(255)      |    Topic name   |\n|    upvote    |  Unsigned Integer |   Upvote count  |\n|   downvote   |  Unsigned Integer |  Downvote count |\n\n## TODO\n\n* [ ] Support [prometheus](https://prometheus.io) metrics API\n\n## Limitations\n\n* Topic should not exceed 255 characters.\n\n* Allow user to upvote or downvote the same topic multiple times.\n\n* Homepage lists top 20 topics (sorted by upvotes, descending)\n\n* Keeps the topics in-memory data cache\n\n* Write test cases\n\n* Deploy to Heroku\n\n## Notes\n\n* Do not do AAA\n\n* Do not check duplicate votes\n\n* No needs in-disk database\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenting%2Fvoting-topic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenting%2Fvoting-topic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenting%2Fvoting-topic/lists"}