Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (33 sloc) 1.2 KB

SockJS - mud

This is a rough and dirty Mud game. Unlike games from early 80's this one uses web interface - you can play from your browser. It's presenting the power of SockJS and under the hood also uses Django.

This code is derived from flying squirrel demos.

Local deployment

To run the stuff locally you need to have node, npm and local Rabbitmq server running. Additionally you need few Python dependencies, to install them run:

virtualenv venv
. venv/bin/activate
pip install -r requirements.txt

To run the sockjs gateway:

cd gateway
npm install
node server.js

To run the main part of mud - python/django server:

. venv/bin/activate
cd mud
./ syncdb --noinput
./ createsuperuser --username=admin
./ runserver

And on the second console:

while [ 1 ]; do curl; echo; sleep 10; done

If you modified the rooms, you may want to save the data:

./ dumpdata \
    --format=json \
    --indent=4 core > /tmp/initial_data.json