Liar's Dice
An online multiplayer game showcasing the potential of Aleo's Zero Knowledge Proof platform.
Local deployment
Prerequisites
- Setup dnsmasq
- Install Docker
- Install Kubectl:
brew install kubectl
- Install Minikube:
brew install minikube
- Install Skaffold:
brew install skaffold
Run minikube
Be sure Docker is running, cd
into the project root directory and run the following commands:
minikube start --cpus=max --memory=max
minikube addons enable ingress
minikube addons enable registry
Build and deploy the project
To build and deploy everything to the cluster, run:
skaffold run
If you want Skaffold to watch for code changes, run:
skaffold dev
Access the application
Open a tunnel to the cluster by running:
sudo minikube tunnel
Keep the process open in the background.
You can access the frontend at frontent.localhost
and the backend at backend.localhost
.
backend/
or frontend/
Adding files to Whenever adding a file (necessary for the applications' build) directly to frontend/
or backend/
root directories:
- Open the
Dockerfile
related to that deployment - In the build phase, add
COPY frontend/<file_name>.<ext> ./frontend/<file_name>.<ext>
(writebackend
instead offrontend
for the backend build)