A multiplayer game where players have to throw balls at targets from their smartphones.
- Open
/screen
on any big screen. This is where the game runs. The game should begin to spawn targets. - Open
/
on any touch device and swipe forward to launch balls at the targets. Many players can play at the same time. - Open
/scoreboard
to get a list of high scores (which updates live).
- Run the following command to reset the scoreboard (replacing
PASSWORD
with your actual admin password):
curl -X DELETE localhost:8080/api/scores -u 'admin:PASSWORD'
- Run
make
- Execute the created binary and visit http://localhost:8080
- Run
make test
The image is also available on Docker Hub.
- Run
make build-docker
- Create a namespace and target it.
- Define a USERNAME and a PASSWORD for logging in.
- Define a DB_USERNAME and a DB_PASSWORD for clong to access the DB with.
- Create a secret called
clong-credentials
as follows:
kubectl create secret generic clong-credentials --from-literal=adminPassword="${PASSWORD}" --from-literal=dbUsername="${DB_USERNAME}" --from-literal=dbPassword="${DB_PASSWORD}"
- Insert your host instead of
xxx
indeployments/k8s/ing-clong.yml
- Apply the deployment as follows:
kubectl apply -f deployments/k8s
- Run
fly launch --config deployments/fly/fly.toml
- Create an SQL database service
- Modify
deployments/cf/*
to your liking - Run
make deploy-cf