{"id":28327263,"url":"https://github.com/ace-cooper/turnbased-gameserver","last_synced_at":"2026-04-04T20:33:21.264Z","repository":{"id":210477403,"uuid":"726614111","full_name":"ace-cooper/turnbased-gameserver","owner":"ace-cooper","description":"Turn-Based Game Server Prototype","archived":false,"fork":false,"pushed_at":"2024-12-31T23:42:56.000Z","size":161,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-06-02T11:23:50.346Z","etag":null,"topics":["backend","docker","game-server","gamedev","mmo","mmo-engine","nodejs","postgres","redis","rest-api","turn-based-combat","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/ace-cooper.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-02T21:54:19.000Z","updated_at":"2024-12-31T23:43:00.000Z","dependencies_parsed_at":"2024-02-14T01:25:25.544Z","dependency_job_id":"3ebe0704-aa3b-407a-9305-253c15e7c39d","html_url":"https://github.com/ace-cooper/turnbased-gameserver","commit_stats":null,"previous_names":["ace-cooper/turnbased-gameserver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ace-cooper/turnbased-gameserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ace-cooper%2Fturnbased-gameserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ace-cooper%2Fturnbased-gameserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ace-cooper%2Fturnbased-gameserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ace-cooper%2Fturnbased-gameserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ace-cooper","download_url":"https://codeload.github.com/ace-cooper/turnbased-gameserver/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ace-cooper%2Fturnbased-gameserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31413269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: 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":["backend","docker","game-server","gamedev","mmo","mmo-engine","nodejs","postgres","redis","rest-api","turn-based-combat","typescript"],"created_at":"2025-05-26T02:18:12.650Z","updated_at":"2026-04-04T20:33:21.240Z","avatar_url":"https://github.com/ace-cooper.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Turn-Based Game Server Prototype (WIP)\n\nThis project is a prototype for a core system of a battle server designed for a turn-based fighting game. It showcases the basics of a server that can handle real-time battles through WebSocket connections using socket.io. The server architecture is designed to be sufficiently decoupled, allowing it to run efficiently in different contexts, such as within a single API request or as a dedicated app instance.\n\n## Features\n\n- Real-time battle handling via WebSocket (socket.io).\n- Decoupled battle logic for high-performance execution.\n- Integrated API server for handling non-real-time game operations.\n- Flexible project structure supporting new application additions, like a matchmaking server.\n- Monorepo architecture for ease of development and scalability.\n\n## Getting Started\n\n### Prerequisites\n\n- Docker: [Install Docker](https://docs.docker.com/get-docker/)\n- Node.js (v18.x): [Install Node.js](https://nodejs.org/)\n\n### Initial Setup\n\n1. Install Docker following the instructions for your OS:\n   - [Docker for Mac](https://docs.docker.com/desktop/mac/install/)\n   - [Docker for Windows](https://docs.docker.com/desktop/windows/install/)\n   - [Docker for Linux](https://docs.docker.com/desktop/linux/install/)\n2. Install Node.js (version 18.x).\n3. Initialize the project by running:\n   ```bash\n   ./bin/init.sh\n   ```\n\n## Development Workflow\n\nTo start developing, follow these steps:\n\n1. Launch the servers:\n   ```bash\n   ./bin/start.sh\n   ```\n\n## Stopping the Servers\n\nTo stop the servers and containers, execute:\n\n1. Stop the Docker containers:\n   ```bash\n   ./bin/stop-containers.sh\n   ```\nor\n\n2. Refresh all services:\n   ```bash\n   ./bin/refresh.sh\n   ```\n\n## Cleanup and Maintenance\n\nFor cleaning up the environment:\n\n1. Prune all unused Docker resources:\n   ```bash\n   ./bin/prune-all.sh\n   ```\n\n## Building and Extending\n\n- To build individual applications, use the `./bin/build.sh` script.\n- To create a new application within the project, run:\n  ```bash\n  ./bin/create-app.sh \u003capp_name\u003e\n  ```\n\n## ToDo\n\n- Implement simple player CRUD operations in the API.\n- Develop a simple matchmaking server/app that will be triggered by a queue (RabbitMQ?) to run battle instances.\n- Utilize the existing Redis cache layer in the core, incorporating a consistent hashing approach, particularly in the API server.\n\n## Note\n\n- This project is a proof of concept and is open for showcase purposes. It is not concerned with the monorepo versus multi-repo discussion but rather focuses on demonstrating a practical implementation of a game server system.\n- The local API utilizes the PostgreSQL Docker image for database services. However, the battle server does not directly interact with the database.\n- The API does not currently use libraries like `routing-controllers` to create basic features, as the goal was to implement these features manually for fun. However, for time-saving purposes, such libraries might be incorporated in the future.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Face-cooper%2Fturnbased-gameserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Face-cooper%2Fturnbased-gameserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Face-cooper%2Fturnbased-gameserver/lists"}