{"id":21315156,"url":"https://github.com/borisprogrm/leaderboard-server","last_synced_at":"2026-04-06T02:32:12.327Z","repository":{"id":217640246,"uuid":"727862811","full_name":"borisprogrm/leaderboard-server","owner":"borisprogrm","description":"Demo project that implements server logic of the game leaderboard","archived":false,"fork":false,"pushed_at":"2024-04-08T10:18:02.000Z","size":717,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T12:24:40.719Z","etag":null,"topics":["docker","dynamodb","express","jest","leaderboard","mongodb","mysql","nodejs","openapi","openapi3","postgresql","redis","swagger","swagger-ui","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-05T18:21:51.000Z","updated_at":"2024-02-16T01:11:19.000Z","dependencies_parsed_at":"2024-02-16T02:24:13.674Z","dependency_job_id":"b74bea2e-f0bc-4cf0-94f5-aba89499180b","html_url":"https://github.com/borisprogrm/leaderboard-server","commit_stats":null,"previous_names":["borisprogrm/leaderboard-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/borisprogrm/leaderboard-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisprogrm%2Fleaderboard-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisprogrm%2Fleaderboard-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisprogrm%2Fleaderboard-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisprogrm%2Fleaderboard-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borisprogrm","download_url":"https://codeload.github.com/borisprogrm/leaderboard-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisprogrm%2Fleaderboard-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31457571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"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":["docker","dynamodb","express","jest","leaderboard","mongodb","mysql","nodejs","openapi","openapi3","postgresql","redis","swagger","swagger-ui","typescript"],"created_at":"2024-11-21T18:17:47.456Z","updated_at":"2026-04-06T02:32:12.313Z","avatar_url":"https://github.com/borisprogrm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leaderboard server\n\n## Introduction\n\nThis is a demo Node.js (Typescript) project that implements server logic of the game leaderboard. Key features are:\n* Flexible modular structure.\n* Validation of input and output request parameters based on OpenAPI (formerly Swagger) specifications.\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 emulators and 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* [Node.js](https://nodejs.org) 20.x\n* [Docker](https://www.docker.com) (to run tests)\n\nTo install required npm modules use the command line :\n```\nnpm install\n```\n\n\n## Configuring\n\nYou can set the necessary settings in the file [src/Config.ts](src/Config.ts)\n\n\n## NPM scripts\n\n* `npm run lint` - checking with a static code analyzer (ESLint)\n\n* `npm run test` - running 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* `npm run build` - building the project\n\n* `npm run start` - launching the project\n\n\n## API specification\n\nBy default, you can access Swagger UI at http://localhost:8415/apidoc/ after starting the server.\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"docs/img/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 [dbTables.json](src/lib/db/dynamodb/dbTables.json)\n\n* **MongoDB**. A document-oriented NoSQL database product. To create the necessary collections and indexes, use script [setup.mongodb.cjs](src/lib/db/mongodb/setup.mongodb.cjs)\n\n* **PostgreSQL**. A free and open-source relational database management system. To create the necessary tables and indexes, use script [dbSetup.sql](src/lib/db/postgresql/dbSetup.sql)\n\n* **MySQL**. An open-source relational database management system. To create the necessary tables and indexes, use script [dbSetup.sql](src/lib/db/mysql/dbSetup.sql)\n\n\n## Keywords\nleaderboard, node.js, typescript, express, openapi, swagger, jest, docker, redis, dynamodb, mongodb, postgresql, mysql","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborisprogrm%2Fleaderboard-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborisprogrm%2Fleaderboard-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborisprogrm%2Fleaderboard-server/lists"}