{"id":15091179,"url":"https://github.com/borisprogrm/go-leaderboard-server","last_synced_at":"2026-02-19T01:02:16.598Z","repository":{"id":248940582,"uuid":"827042737","full_name":"borisprogrm/go-leaderboard-server","owner":"borisprogrm","description":"Demo project implementing server-side logic of the game leaderboard in Go language","archived":false,"fork":false,"pushed_at":"2024-07-21T00:35:11.000Z","size":119,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T12:55:13.885Z","etag":null,"topics":["docker","dynamodb","gin","golang","leaderboard","mongodb","mysql","openapi","postgresql","redis","swagger","swagger-ui","swaggo"],"latest_commit_sha":null,"homepage":"","language":"Go","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/borisprogrm.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-07-10T22:56:41.000Z","updated_at":"2024-08-15T10:12:11.000Z","dependencies_parsed_at":"2024-07-19T05:29:08.631Z","dependency_job_id":"4c5ad97e-32ef-4775-a5ee-b97a4c353024","html_url":"https://github.com/borisprogrm/go-leaderboard-server","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"b5d53c1c97c303bbb8defb5af37dca10605d479b"},"previous_names":["borisprogrm/go-leaderboard-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/borisprogrm/go-leaderboard-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisprogrm%2Fgo-leaderboard-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisprogrm%2Fgo-leaderboard-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisprogrm%2Fgo-leaderboard-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisprogrm%2Fgo-leaderboard-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borisprogrm","download_url":"https://codeload.github.com/borisprogrm/go-leaderboard-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisprogrm%2Fgo-leaderboard-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29600352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T00:59:38.239Z","status":"ssl_error","status_checked_at":"2026-02-19T00:59:36.936Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["docker","dynamodb","gin","golang","leaderboard","mongodb","mysql","openapi","postgresql","redis","swagger","swagger-ui","swaggo"],"created_at":"2024-09-25T10:36:13.949Z","updated_at":"2026-02-19T01:02:14.561Z","avatar_url":"https://github.com/borisprogrm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leaderboard server (Go)\n\n## Introduction\n\nThis is a demo Go project that implements server logic of the game leaderboard. Key features are:\n* Flexible modular structure.\n* Validation of request parameters.\n* Automatic generation of documentation based on the full OpenAPI specification and the ability to display it through Swagger UI.\n* Support for multiple relational and non-relational databases: Redis, MongoDB, DynamoDB, PostgreSQL, MySQL and others.\n* Testing database functionality (unit tests) through docker containers.\n\nPlease keep in mind that for a full launch in production this project lacks some important features, such as a request authorization mechanism.\n\n\n## Prerequisites\n\n* [Go](https://go.dev) 1.22\n* [Docker](https://www.docker.com) (to run tests and to build and run containers)\n* The Make utility (to run make commands)\n\n\n## Configuring\n\nYou can set the necessary settings in the configuration files [internal/config/](internal/config/)\n\n\n## Make commands\n\n* `make deps` - install dependencies\n* `make lint` - check the code with a linter (golangci-lint)\n* `make test` - run tests\n\n\u003e **NOTE**\n\u003e Please keep in mind that running the tests for the first time may take a long time due to downloading the necessary docker images\n\n* `make swag` - generate swagger specification based on code\n\n\u003e **NOTE**\n\u003e This will update docs.go, swagger.json, swagger.yaml files in the docs/ folder. You only need to do this when the API changes\n\n* `make build_debug` - build the project (debug)\n* `make run_debug` - run the project (debug)\n* `make build` - build the project (production)\n* `make run` - run the project (production)\n\nMore details on the list of Make commands can be found in the [Makefile](Makefile)\n\n\n## API specification\n\nBy default, you can access Swagger UI at http://localhost:8415/ui/index.html after starting the local server (debug config).\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"docs/swaggerui.png\" alt=\"Swagger UI in browser\" style=\"height: 50%; width:50%;\"/\u003e\n\u003c/p\u003e\n\n\n## DB Providers\n\nAny available DB provider can be used depending on your needs.\n\n* **In-memory**. Simplest storage in RAM (per process). Only for testing purpose.\n\n* **Redis**. An open-source in-memory storage.\n\n* **DynamoDB**. A fully managed proprietary NoSQL database offered by Amazon.com as part of the Amazon Web Services. To create the necessary tables and indexes, use [dynamodb_setup.json](internal/db/dynamodb/dynamodb_setup.json)\n\n* **MongoDB**. A document-oriented NoSQL database product. To create the necessary collections and indexes, use script [mongodb_setup.js](internal/db/mongodb/mongodb_setup.js)\n\n* **PostgreSQL**. A free and open-source relational database management system. To create the necessary tables and indexes, use script [postgresql_setup.sql](internal/db/postgresql/postgresql_setup.sql)\n\n* **MySQL**. An open-source relational database management system. To create the necessary tables and indexes, use script [mysql_setup.sql](internal/db/mysql/mysql_setup.sql)\n\n\n## Keywords\nleaderboard, golang, gin, openapi, swagger, swagger ui, swaggo, make, docker, redis, dynamodb, mongodb, postgresql, mysql","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborisprogrm%2Fgo-leaderboard-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborisprogrm%2Fgo-leaderboard-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborisprogrm%2Fgo-leaderboard-server/lists"}