Code Monkey home page Code Monkey logo

ponyplace's Introduction

ponyplace is a 2d pony chatroom powered by node.js and WebSocket.

Setup

Configuration

  1. Make sure you have a special-users.json file in the server/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"
     }
    
  2. You'll also need a bypass.json file in server/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"
     }
    

Running Server

  1. Obviously, make sure you have node.js.
  2. cd into the server directory and do npm install. This is equivalent to npm install websocket to get WebSocket-Node (which itself requires node-gyp, do sudo npm install -g node-gyp first) and npm install keypress to get the keypress module.
  3. Run server.js (add --debug switch if running locally)
  4. 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 called ponyplace.ajf.me and be on port 80.

ponyplace's People

Contributors

hikari-no-yume avatar chocrain avatar medo42 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.