A web server for massively multi-user online applications.
- Tornado Web Server (http://www.tornadoweb.org/)
- Websocket client 0.8.0 (http://pypi.python.org/pypi/websocket-client/)
- Python 2.7
- Python-MySQLDB (http://sourceforge.net/projects/mysql-python/)
- Python-SQLAlchemy 0.7 (http://www.sqlalchemy.org/). You may need python-sqlalchemy and python-sqlalchemy-ext.
To install all required packages in ubuntu, do: sudo apt-get install python python-sqlalchemy python-pip sudo pip install tornado sudo pip install websocket-client
Please note that the Ubuntu package python-tornado is not up-to-date and will cause errors in running rcat.
After installing all the required libraries, follow these 3 steps to start the server
- cd into bin directory
- Copy rcat.cfg.example and jigsaw.cfg.example to rcat.cfg and jigsaw.cfg respectively. Configure both files with host name and mysql credentials (default: localhost)
- run ./runproxy.sh
- run ./runjigsaw.sh
- By default, the client in static/jigsaw.html connects to localhost. If deploying externally, modify the server URL in jigsaw.html accordingly.
bots:
- cd /dbg
- ./runbot.sh ip port numbots
Now point your browser at :8888/static/jigsaw.html, change the host name and click Connect!
- mysql -u jigsawuser -p
- then enter password
- use jigsawdb
- select * from jigsawpieces