This is the hub application that receives data and forwards it to the appropriate connected websocket clients.
Your go version
must support modules in order for go build
to obtain the necessary dependencies. Currently mongodb
is the only supported database.
- Install mongodb and create a new database.
cd cmd/are_hub/
go build
./are_hub
or./are_hub --help
to view the commandline arguments and their default values.
Building a docker container is the easiest way (probably).
docker build -t are_hub:<tag> .
docker run -d -p 9001:9001 --network backend are_hub:<tag> --address :9001 --allow-origin example.com --db-user blast_hardcheese --db-pass butch_deadlift --db-host mongodb --db-name acc_race_engineer
BSD-3-clause