Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

👑 King of Tokyo Multiplayer Board Game using Phoenix LiveView

NotificationsYou must be signed in to change notification settings

dkarter/king_of_tokyo

Repository files navigation

The King Live   Elixir CI

An online multiplayer game inspired by the King Of Tokyo board game.

Written in Elixir, Phoenix and Phoenix LiveView.

I 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, withat least one person in the group owning a copy of the original board game.

The 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 tohttps://theking.live and join the same room code.

Disclaimer

I 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.

If you enjoy it - pleasepurchase the game from IELLO and support the authors.

Running

To start your Phoenix server:

  • Install dependencies withmix deps.get
  • Install Node.js dependencies withyarn install --cwd assets
  • Start Phoenix endpoint withmix phx.server

Now you can visitlocalhost:4000 from your browser.

Deployment

  1. Set up aDigitalOcean account

  2. Get an API token from the API section on the sidebar and export an API token like so:

    $export DIGITALOCEAN_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  3. Create an ssh key for the project:

    $ ssh-keygen -f~/.ssh/theking
  4. Install Pulumi dependencies:

    $ yarn --cwd infra
  5. Run Pulumi to associate your ssh key, create a droplet, domain and firewall:

    $ mix pulumi up
  6. Store the Ansible Vault password inansible/.vault-password

  7. Run Ansible to provision the droplet:

    $ mix ansible
  8. Deploy using edeliver:

    $ mix edeliver update production --branch=[OPTIONAL_BRANCH_TO_DEPLOY]

    (do not use edeliver's restart / start / stop - the app will automaticallyrestart the systemd service when deployed)


[8]ページ先頭

©2009-2025 Movatter.jp