Gamesrv is a game server using flask, socket.io, chess.js, and chessboard.js
It currently only supports chess, though I plan to add more games in the future
- Install the required packages:
- python 3
- pip (for python 3)
- venv (for python 3)
- on ubuntu, you can install these requirements using
sudo apt install python3 python3-pip python3-venv
- Execute
setup.sh
- This will automatically create a virtual environment, and install the required packages
- It will not affect your global python environment
Done! Note: by default, the server only listens to connections from localhost, port 5000. You can change this by modifying config.py, or connect it to another web server like nginx.
- Execute
run.sh
- You don't need to be in the virtual environment for this to work
Done!
You can stop it with ./run.sh stop
You can use the printlog.py
file to view the log file
Options:
- all, or move
- output all the messages in the log file, including:
- move
- info
- warn
- output all the messages in the log file, including:
- info
- only output info and warn log messages
- warn
- only output warnings