{"id":24884573,"url":"https://github.com/grmvoid/node-leaderboards","last_synced_at":"2025-06-15T22:32:38.623Z","repository":{"id":139626287,"uuid":"455879721","full_name":"grmvoid/node-leaderboards","owner":"grmvoid","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-22T18:27:11.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T14:35:24.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/grmvoid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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},"funding":{"github":"nulxrd"}},"created_at":"2022-02-05T13:38:09.000Z","updated_at":"2024-09-01T10:23:20.000Z","dependencies_parsed_at":"2024-02-02T05:26:56.322Z","dependency_job_id":"25abe377-1a60-44a8-9f94-0bc9bcc42ed3","html_url":"https://github.com/grmvoid/node-leaderboards","commit_stats":null,"previous_names":["bytebits9/leaderboards","nulldark/leaderboards","nuldark/leaderboards","nulxrd/leaderboards","sxbrsky/leaderboards","grmvoid/node-leaderboards"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grmvoid%2Fnode-leaderboards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grmvoid%2Fnode-leaderboards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grmvoid%2Fnode-leaderboards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grmvoid%2Fnode-leaderboards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grmvoid","download_url":"https://codeload.github.com/grmvoid/node-leaderboards/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245821743,"owners_count":20678078,"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":"2025-02-01T14:29:36.612Z","updated_at":"2025-03-27T09:43:21.798Z","avatar_url":"https://github.com/grmvoid.png","language":"JavaScript","readme":"# Leaderboards\n\nMinecraft Leaderboards based on REST API\n\n## Description\n\nLeaderboards is an API that returns player statistics. Currently supported stats are points, number of kills and deaths. The API has been created to easily integrate statistics into our website. A minecraft plugin will be released soon.\n\n## Getting Started\n\n### Dependencies\n\n* MySQL\n* Node.js\n* Yarn\n* Nginx\n\n### Preinstallation\n\n* Create new database\n* Create tables \n```\n\nCREATE TABLE `users` (\n  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n  `username` varchar(48) DEFAULT NULL,\n  UNIQUE KEY `id` (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4;\n\nCREATE TABLE `tokens` (\n  `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,\n  `token` varchar(32) NOT NULL DEFAULT '',\n  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),\n  PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;\n\nCREATE TABLE `statistics` (\n  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n  `uid` bigint(20) unsigned NOT NULL,\n  `kills` int(11) NOT NULL DEFAULT 0,\n  `deaths` int(11) NOT NULL DEFAULT 0,\n  UNIQUE KEY `id` (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4;\n```\n* Add new token into tokens table \n\n### Installing\n\n* Clone this repository\n* Go to repository folder and type yarn install\n* Rename app/backend/config/default.js to production.js\n* Configure apps/backend/config/production.js\n* Setup nginx as proxy server\n* Start application by typing yarn start\n\n### API\n\n* Making request\n  * Pass token to Authorization header\n  * Call /api/statistics?statisticName=[kill, death, score] (choose one)\n\n## Version History\n\n* 0.1\n    * Initial Release\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE.md file for details\n","funding_links":["https://github.com/sponsors/nulxrd"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrmvoid%2Fnode-leaderboards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrmvoid%2Fnode-leaderboards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrmvoid%2Fnode-leaderboards/lists"}