Skip to content

tidle/gamesrv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gamesrv

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

Installing

  1. 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
  2. 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.

Running

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

Viewing the log.txt file

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
  • info
    • only output info and warn log messages
  • warn
    • only output warnings

About

A game server written in python and javascript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published