{"id":18411011,"url":"https://github.com/cloudlena/clong","last_synced_at":"2025-04-14T16:09:12.968Z","repository":{"id":53132070,"uuid":"87986217","full_name":"cloudlena/clong","owner":"cloudlena","description":"A fun multiplayer game","archived":false,"fork":false,"pushed_at":"2024-10-15T18:25:02.000Z","size":269,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-17T08:57:18.254Z","etag":null,"topics":["game","go","golang","mysql","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudlena.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-04-11T22:49:53.000Z","updated_at":"2024-10-15T18:25:06.000Z","dependencies_parsed_at":"2024-01-15T13:10:40.971Z","dependency_job_id":"c0fcd3df-2092-48f2-ad75-68e6f8d184a9","html_url":"https://github.com/cloudlena/clong","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudlena%2Fclong","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudlena%2Fclong/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudlena%2Fclong/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudlena%2Fclong/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudlena","download_url":"https://codeload.github.com/cloudlena/clong/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230897197,"owners_count":18296903,"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":["game","go","golang","mysql","websocket"],"created_at":"2024-11-06T03:34:54.137Z","updated_at":"2024-12-24T15:18:10.451Z","avatar_url":"https://github.com/cloudlena.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clong\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/cloudlena/clong)](https://goreportcard.com/report/github.com/cloudlena/clong)\n[![Build Status](https://github.com/cloudlena/clong/actions/workflows/main.yml/badge.svg)](https://github.com/cloudlena/clong/actions)\n\nA multiplayer game where players have to throw balls at targets from their smartphones.\n\n1.  Open `/screen` on any big screen. This is where the game runs. The game should begin to spawn targets.\n1.  Open `/` on any touch device and swipe forward to launch balls at the targets. Many players can play at the same time.\n1.  Open `/scoreboard` to get a list of high scores (which updates live).\n\n## Resetting Scores\n\n1. Run the following command to reset the scoreboard (replacing `PASSWORD` with your actual admin password):\n\n```shell\ncurl -X DELETE localhost:8080/api/scores -u 'admin:PASSWORD'\n```\n\n## Build and Run Locally\n\n1.  Run `make`\n1.  Execute the created binary and visit \u003chttp://localhost:8080\u003e\n\n## Run Tests\n\n1.  Run `make test`\n\n## Build Container Image\n\nThe image is also available on [Docker Hub](https://hub.docker.com/r/cloudlena/clong/).\n\n1.  Run `make build-docker`\n\n## Run on Kubernetes\n\n1. Create a namespace and target it.\n2. Define a USERNAME and a PASSWORD for logging in.\n3. Define a DB_USERNAME and a DB_PASSWORD for clong to access the DB with.\n4. Create a secret called `clong-credentials` as follows:\n\n```shell\nkubectl create secret generic clong-credentials --from-literal=adminPassword=\"${PASSWORD}\" --from-literal=dbUsername=\"${DB_USERNAME}\" --from-literal=dbPassword=\"${DB_PASSWORD}\"\n```\n\n5. Insert your host instead of `xxx` in `deployments/k8s/ing-clong.yml`\n6. Apply the deployment as follows:\n\n```shell\nkubectl apply -f deployments/k8s\n```\n\n## Run on Fly\n\n1. Run `fly launch --config deployments/fly/fly.toml`\n\n## Run on Cloud Foundry\n\n1.  Create an SQL database service\n1.  Modify `deployments/cf/*` to your liking\n1.  Run `make deploy-cf`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudlena%2Fclong","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudlena%2Fclong","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudlena%2Fclong/lists"}