ponyplace is a 2d pony chatroom powered by node.js and WebSocket.
-
Make sure you have a
special-users.jsonfile in theserver/datadirectory. Make sure the usernames listed have accounts attached, otherwise anyone can create one with that name and use mod powers. Should be of format:{ "joe": "creator", "fred": "moderator", "garry": "moderator", "tomatobot": "bot" } -
You'll also need a
bypass.jsonfile inserver/data. You can leave it empty ({}), but if you have any bots, this allows them to bypass login via Persona, and instead use a password, e.g.:{ "somebot": "password123" }
- Obviously, make sure you have node.js.
cdinto theserverdirectory and donpm install. This is equivalent tonpm install websocketto get WebSocket-Node (which itself requires node-gyp, dosudo npm install -g node-gypfirst) andnpm install keypressto get the keypress module.- Run
server.js(add--debugswitch if running locally) - Run a web server at the same hostname. When debugging, run one at
localhost:8000. Note that it expects, for login verification purposes, the production server to always be calledponyplace.ajf.meand be on port 80.