RedDwarf-JS is a Javascript client library for RedDwarf (formerly Project Darkstar).
- Install Twisted. (Requires Python.)
- Install Orbited. (On my Macbook, all I had to do was use Python's easy_install facility:
easy_install orbited
andeasy_install simplejson
.) - Download RedDwarf Server. (To run it, you'll need Java 6. On a 64-bit Mac you can get it via Software Update.)
- Get a command prompt in the RedDwarf-JS directory and then run
orbited
- Get a command prompt in the directory where you downloaded RedDwarf Server and start the SwordWorld (or HelloChannels or whatever) server by running
java -jar bin/sgs-boot.jar tutorial/conf/SwordWorld.boot
- Point your web browser at http://localhost:9000/example/example.html
This is just a port of the Darkstar-as3 code over to Javascript. Thanks go to the people who wrote that, and the whole Project Darkstar/RedDwarf team. (Though if it doesn't work, it's probably my fault - it's very possible that I didn't port the code quite right.)
I can't promise that this code will work for you. I've tried it out with HelloChannels and SwordWorld, on a few different browsers (Safari and Firefox and Chrome on my Macbook, and IE8 and Chrome on Windows XP). Please let me know if you find bugs or have questions or comments.
Like Darkstar-as3, this project is under the MIT License.