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