Web chat backend using Bottle and a Gevent server to run the server application: install python-bottle with apt or bottle with pip, easi-install or whatever else open chat.py and configure host_name, port_num and num_messages run python chat.py