|Hamcha 932ed7b204 Don't update room after removing it!||6 months ago|
|client/bot||7 months ago|
|lobby||7 months ago|
|room||6 months ago|
|.drone.yml||6 months ago|
|.gitignore||8 months ago|
|.vagrantplugins||7 months ago|
|Caddyfile||7 months ago|
|Dockerfile.builder||7 months ago|
|Dockerfile.publish||7 months ago|
|Dockerfile.service-run||7 months ago|
|LICENSE||7 months ago|
|README.md||7 months ago|
|Vagrantfile||7 months ago|
|cardgage.go||7 months ago|
|docker-compose.yml||7 months ago|
|go.mod||7 months ago|
|go.sum||7 months 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