|Hamcha 932ed7b204||1 year ago|
|client/bot||1 year ago|
|lobby||1 year ago|
|room||1 year ago|
|.drone.yml||1 year ago|
|.gitignore||1 year ago|
|.vagrantplugins||1 year ago|
|Caddyfile||1 year ago|
|Dockerfile.builder||1 year ago|
|Dockerfile.publish||1 year ago|
|Dockerfile.service-run||1 year ago|
|LICENSE||1 year ago|
|README.md||1 year ago|
|Vagrantfile||1 year ago|
|cardgage.go||1 year ago|
|docker-compose.yml||1 year ago|
|go.mod||1 year ago|
|go.sum||1 year ago|
Cardgage is a (very unfinished) set of microservices built on top of moa aimed at creating a fully featured back-end for multiplayer board/card games.
Cardgage aims to:
docker-compose up --force-recreate --build
A Vagrantfile is provided to easily build and deploy a dev environment on platforms without docker, like Windows.
First, the ugly: you need a plugin.
vagrant plugin install vagrant-docker-compose
After that, setup/run the VM with
vagrant up and build the project with
The API gateway uses httputil.ReverseProxy, which doesn't support websockets before Go 1.12.
This is technically a non-issue since
golang:alpine takes the newest golang out there (which is 1.12 at the time of writing) but if you are rolling your own infrastructure you should keep this in mind.
For the official server we keep metrics via Prometheus amongst other things, so we need a custom docker build:
docker build --build-arg plugins=prometheus,cors,git -t mcg-caddy github.com/abiosoft/caddy-docker.git
go.mod changes you need to re-build the builder, there is a command for that:
If your docker build of apigateway is outdated, you can rebuild it by just calling
vagrant ssh -c "cd /vagrant; docker-compose build"
This will take a while.
You will need:
cd into the appropriate folder (
<servicename>/proto) and run
protoc --go_out=plugins=grpc:. <service>.proto