go-foosball

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Foosball tournament applications

Build Go Report Card codecov

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).

Screenshot

The application is using a REST service back-end written in Go and a front-end created using TypeScript and React.

Run

Start the application on MacOS using:

./go-foosball-darwin

or on Linux:

./go-foosball-linux

or on Windows:

go-foosball.exe

The GUI can then be accessed using [http://localhost:8080/]

Use --help to list command line options - e.g.:

./go-foosball-darwin --help

This 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

Build the back-end using:

make build

or

go build -o go-foosball

Go must be installed.

The front-end will be embed in the back-end executable when build using:

make client build

but back-end and front-end can also run separately. To only build the front-end use:

cd client
pnpm build

To only start the front-end use:

cd client
pnpm start

Node.js version 14 or above and Yarn must be installed.

Test

Test the back-end using:

make test

or

go test -cover ./...

Test the front-end using:

cd client
pnpm test

Swagger

make swagger

or

$(go env GOPATH)/bin/swag init

Swagger can be viewed using [http://localhost:8080/swagger/index.html]

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址