- Notifications
You must be signed in to change notification settings - Fork7
👑 King of Tokyo Multiplayer Board Game using Phoenix LiveView
dkarter/king_of_tokyo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
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.
To start your Phoenix server:
- Install dependencies with
mix deps.get
- Install Node.js dependencies with
yarn install --cwd assets
- Start Phoenix endpoint with
mix phx.server
Now you can visitlocalhost:4000
from your browser.
Set up aDigitalOcean account
Get an API token from the API section on the sidebar and export an API token like so:
$export DIGITALOCEAN_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Create an ssh key for the project:
$ ssh-keygen -f~/.ssh/theking
Install Pulumi dependencies:
$ yarn --cwd infra
Run Pulumi to associate your ssh key, create a droplet, domain and firewall:
$ mix pulumi up
Store the Ansible Vault password in
ansible/.vault-password
Run Ansible to provision the droplet:
$ mix ansible
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)
About
👑 King of Tokyo Multiplayer Board Game using Phoenix LiveView