Go-foosball is an application to manage your foosball tournaments. It supports multiple tournaments, and you can easily add players and tables. Each players receives a rating based on a chess like rating system (Elo).
The application is using a REST service back-end written in Go and a front-end created using TypeScript and React.
Start the application on MacOS using:
./go-foosball-darwinor on Linux:
./go-foosball-linuxor on Windows:
go-foosball.exeThe GUI can then be accessed using [http://localhost:8080/]
Use --help to list command line options - e.g.:
./go-foosball-darwin --helpThis will output:
Usage of ./go-foosball-darwin:
-db string
the database file (default "foosball.db")
-debug
enable debug
-port uint
the port number (default 8080)Build the back-end using:
make buildor
go build -o go-foosballGo must be installed.
The front-end will be embed in the back-end executable when build using:
make client buildbut back-end and front-end can also run separately. To only build the front-end use:
cd client
pnpm buildTo only start the front-end use:
cd client
pnpm startNode.js version 14 or above and Yarn must be installed.
Test the back-end using:
make testor
go test -cover ./...Test the front-end using:
cd client
pnpm testmake swaggeror
$(go env GOPATH)/bin/swag initSwagger can be viewed using [http://localhost:8080/swagger/index.html]
