Discover Packages
github.com/cloudlena/clong
command
module
Version:
v0.0.0-...-5f81c36
Opens a new window with list of versions in this module.
Published: Mar 22, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Clong
A simple 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).
Build and Run Locally
Run make
Execute the created binary and visit http://localhost:8080
Run Tests
Run make test
Build Container Image
The image is also available on Docker Hub .
Run make build-docker
Run on Cloud Foundry
Create an SQL database service
Modify deployments/cf/*
to your liking
Run make deploy-cf
Run on Kubernetes
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=clongUsername="${USERNAME}" --from-literal=clongPassword="${PASSWORD}" --from-literal=dbUsername="${DB_USERNAME}" --from-literal=dbPassword="${DB_PASSWORD}"
Insert your host instead of xxx
in deployments/k8s/ing-clong.yml
Apply the deployment as follows:
kubectl apply -f deployments/k8s
Expand ▾
Collapse ▴
Documentation
¶
Command clong is a simple game that allows controller-
and screen devices to connect to each other.
The goal of the game is to hit targets on the screen
by flicking balls at them from the controller.
Source Files
¶
Directories
¶
internal
clong/mysql
Package mysql allows to interact with a MySQL database.
Package mysql allows to interact with a MySQL database.
Click to show internal directories.
Click to hide internal directories.