Server built specifically for this game go-tic-tac. You will only need Golang 1.19 or higher installed. Download and install GO from official link, or use your OS package manager. You can also use the Dockerfile provided, which builds a tiny image (~5MB only).
-
Simply open up your terminal (or CMD) at this project root directory and run the following command.
go build --ldflags="-s -w"
-
Set ENV variable for PORT which the server will listen to.
-
By default, it will run on port 9876.
-
Done. Now you can simply execute the binary
./server-tic-tac
. -
To stop the server anytime, just press
CTRL
+C
, or quit the terminal window
© 2023, Davis Tibbz, MIT License
Pull requests and issues are welcome.