{"id":16573682,"url":"https://github.com/dkarter/king_of_tokyo","last_synced_at":"2025-03-16T20:31:34.098Z","repository":{"id":42881471,"uuid":"248536252","full_name":"dkarter/king_of_tokyo","owner":"dkarter","description":"👑 King of Tokyo Multiplayer Board Game using Phoenix LiveView","archived":false,"fork":false,"pushed_at":"2025-03-13T03:13:07.000Z","size":1036,"stargazers_count":46,"open_issues_count":15,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T01:59:01.491Z","etag":null,"topics":["ansible","board-game","elixir","game","liveview","multiplayer","phoenix","phoenix-channels","phoenix-framework","phoenix-liveview","pulumi"],"latest_commit_sha":null,"homepage":"https://theking.live","language":"Elixir","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/dkarter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-03-19T15:20:28.000Z","updated_at":"2025-03-05T10:34:05.000Z","dependencies_parsed_at":"2024-03-19T11:28:44.005Z","dependency_job_id":"c7dc975c-2be5-45eb-bd08-6ff721fc650c","html_url":"https://github.com/dkarter/king_of_tokyo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fking_of_tokyo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fking_of_tokyo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fking_of_tokyo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fking_of_tokyo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkarter","download_url":"https://codeload.github.com/dkarter/king_of_tokyo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354848,"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":["ansible","board-game","elixir","game","liveview","multiplayer","phoenix","phoenix-channels","phoenix-framework","phoenix-liveview","pulumi"],"created_at":"2024-10-11T21:42:48.585Z","updated_at":"2025-03-16T20:31:32.511Z","avatar_url":"https://github.com/dkarter.png","language":"Elixir","funding_links":[],"categories":["LiveView"],"sub_categories":[],"readme":"\u003cimg alt=\"The King Live\" src=\"./assets/static/images/logo.png\" width=\"250\" /\u003e \u0026nbsp;\u0026nbsp; ![Elixir CI](https://github.com/dkarter/king_of_tokyo/workflows/Elixir%20CI/badge.svg)\n\nAn online multiplayer game inspired by the King Of Tokyo board game. \n\nWritten in Elixir, Phoenix and Phoenix LiveView.\n\nI created this app to enable playing one of my favorite board games in the age of social distancing. It is meant to be used in a multi person video chat app, such as Zoom, with **at least one person in the group owning a copy of the original board game**.\n\nThe person who owns the game needs to point a camera at the cards and share them with the rest of the group. Every player must then go to [https://theking.live](https://theking.live) and join the same room code.\n\n## Disclaimer\nI do not own or claim to own the copyrights or trademark to King of Tokyo board game by Richard Garfield and IELLO. This application was built for educational purposes only and you must own the original game to play it. The purpose of this application is not to replace the original game, but to enable playing it over a video conferencing software.\n\nIf you enjoy it - please [purchase the game from IELLO and support the authors](https://iellousa.com/collections/king-of-tokyo-collection/products/king-of-tokyo).\n\n## Running\n\nTo start your Phoenix server:\n\n  * Install dependencies with `mix deps.get`\n  * Install Node.js dependencies with `yarn install --cwd assets`\n  * Start Phoenix endpoint with `mix phx.server`\n\nNow you can visit [`localhost:4000`](http://localhost:4000) from your browser.\n\n## Deployment\n\n1. Set up a [DigitalOcean](https://m.do.co/c/8cd5d34769f8) account\n\n2. Get an API token from the API section on the sidebar and export an API token like so:\n\n    ```sh\n    $ export DIGITALOCEAN_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n    ```\n\n3. Create an ssh key for the project:\n\n    ```sh\n    $ ssh-keygen -f ~/.ssh/theking\n    ```\n\n4. Install Pulumi dependencies:\n\n    ```sh\n    $ yarn --cwd infra\n    ```\n\n5. Run Pulumi to associate your ssh key, create a droplet, domain and firewall:\n\n    ```sh\n    $ mix pulumi up\n    ```\n\n6. Store the Ansible Vault password in `ansible/.vault-password`\n\n7. Run Ansible to provision the droplet:\n\n    ```sh\n    $ mix ansible\n    ```\n\n8. Deploy using edeliver:\n\n    ```sh\n    $ mix edeliver update production --branch=[OPTIONAL_BRANCH_TO_DEPLOY]\n    ```\n\n    (do not use edeliver's restart / start / stop - the app will automatically\n    restart the systemd service when deployed)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkarter%2Fking_of_tokyo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkarter%2Fking_of_tokyo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkarter%2Fking_of_tokyo/lists"}