{"id":15272428,"url":"https://github.com/aksh-patel1/go-gin-rest-api","last_synced_at":"2026-02-07T08:02:59.775Z","repository":{"id":213567503,"uuid":"734406301","full_name":"aksh-patel1/go-gin-rest-api","owner":"aksh-patel1","description":"This project is a straightforward Go REST API created with the Gin framework and PostgreSQL for player and score management. The API offers various endpoints for performing CRUD operations on player data and obtaining a leaderboard.","archived":false,"fork":false,"pushed_at":"2023-12-23T15:28:09.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T19:43:35.823Z","etag":null,"topics":["gin","gin-framework","gin-gonic","go","golang","postgres","postgresql","rest","rest-api","restful"],"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/aksh-patel1.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":"2023-12-21T15:46:26.000Z","updated_at":"2023-12-23T15:30:34.000Z","dependencies_parsed_at":"2023-12-21T19:11:09.614Z","dependency_job_id":"b6473337-2b20-46ec-a0f4-ff7094c686ea","html_url":"https://github.com/aksh-patel1/go-gin-rest-api","commit_stats":null,"previous_names":["aj225patel/go-gin-rest-api","aksh-patel1/go-gin-rest-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aksh-patel1/go-gin-rest-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksh-patel1%2Fgo-gin-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksh-patel1%2Fgo-gin-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksh-patel1%2Fgo-gin-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksh-patel1%2Fgo-gin-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aksh-patel1","download_url":"https://codeload.github.com/aksh-patel1/go-gin-rest-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksh-patel1%2Fgo-gin-rest-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29189675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"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":["gin","gin-framework","gin-gonic","go","golang","postgres","postgresql","rest","rest-api","restful"],"created_at":"2024-09-30T09:06:49.878Z","updated_at":"2026-02-07T08:02:59.741Z","avatar_url":"https://github.com/aksh-patel1.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go REST API with Gin and PostgreSQL\n\nManage player scores with ease using this lightweight and efficient REST API.\n\n## Features\n\n- CRUD Operations: Create, read, update, and delete player information seamlessly.\n- Leaderboard: Retrieve a ranked list of players based on their scores.\n\n## Getting Started\n\n### Prerequisites\n\n- Golang (version 1.18 or later)\n- PostgreSQL\n\n### Installation\n\n1. Clone the repository:\n\n  ```bash\n  git clone https://github.com/your-username/go-gin-rest-api.git\n  ```\n\n2. Install dependencies:\n\n  ``` bash\ngo mod download\n```\n\n### Database Setup:\n   - Create a PostgreSQL database named gamedatabase\n   - Create a table named players with the following columns:\n     * player_id (integer, primary key)\n     * player_name (text)\n     * score (integer)\n       \n### Running the API:\n   - Start the API server:\n     ```bash\n     go run main.go\n     ```\n\n   - The API will be accessible at [](http://localhost:8080)\n  \n### API Endpoints:\n   |Endpoints     | Method | Description                                     |\n   |--------------|--------|-------------------------------------------------|\n   |/player       | GET    | Retrieve information about all players.         |\n   |/player       | POST   | Add a new player with score information.        |\n   |/player/{id}  | DELETE | Delete a player by their ID.                    |\n   |/player/{id}  | PATCH  | Update player information: name, score, or both.|\n   |/leaderboard  | GET    | Retrieve the player leaderboard sorted by score.|\n\n   \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faksh-patel1%2Fgo-gin-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faksh-patel1%2Fgo-gin-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faksh-patel1%2Fgo-gin-rest-api/lists"}