ponyplace is a 2d pony chatroom powered by node.js and WebSocket.
-
Make sure you have a
special-users.json
file in theserver/data
directory. 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.json
file 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.
cd
into theserver
directory and donpm install
. This is equivalent tonpm install websocket
to get WebSocket-Node (which itself requires node-gyp, dosudo npm install -g node-gyp
first) andnpm install keypress
to get the keypress module.- Run
server.js
(add--debug
switch 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.me
and be on port 80.