WASMamba
A Battlesnake written with Spin WASM and Go.
Local
Install Spin, TinyGo, and the Battlesnake CLI.
Run the snake with spin build
then spin up
. Run the server with battlesnake play --name "WASMamba" --url http://localhost:3000 --name "WASMamba2" --url http://localhost:3000 --browser
.
Infrastructure
Infrastructure can be provisioned by running terraform init && terraform apply
in the tf
directory.
Ocassionally, we may need to update manifests. Install the spin k8s plugin. Run spin k8s scaffold wasmamba -o
to get the latest Dockerfile and manifests. Compare the manifests to the current manifests. Additionally, see spin kubernetes docs for latest best practices.