Coder Social home page Coder Social logo

zodsoft / grillode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stephenmcd/grillode

1.0 2.0 0.0 297 KB

A web-based chat application written in CoffeeScript for Node.js

Home Page: http://chat.jupo.org

License: BSD 3-Clause "New" or "Revised" License

grillode's Introduction

Overview

Grillode is A web-based chat application written in CoffeeScript for Node.js. It is BSD licensed.

Due to web sockets and Node's evented model, the Grillode server should be able to handle thousands of real-time users simultaneously.

A demo can be found at http://chat.jupo.org.

Installation

Grillode is available in source form on both Github and Bitbucket. Grillode also makes use of the following libraries which can be installed using Node Package Manager (NPM).

With Node.js and NPM installed, you can install all of the above dependencies by running the following command from within the Grillode directory:

$ npm install .

You can then run the Grillode server by running the following command from within the Grillode directory, with an optional port number:

$ coffee server.coffee 8000

To allow the server to continue to run detached from the terminal session, you can run the same command using nohup:

$ nohup coffee server.coffee 8000 &

When running the server detached from the terminal session, you can shut the server down in one command with::

$ kill -9 `ps aux | grep server.coffee | grep -v grep | awk '{print $2}'`

Configuration

Grillode can operate in several modes to support different use cases:

  • A general chat server with a fixed set of rooms
  • A hybrid of the above, where users can add their own rooms
  • A customer support service, where customers join a chat queue and support staff answers each customer chat one by one
  • A hybrid of the above, where users are randomly matched to each other
  • All of the above at once!

Several settings found in the file settings.coffee can be used to control the modes described above, these are:

  • ROOMS - The initial list of fixed room names
  • ADDABLE_ROOMS - When set to on, rooms can be added, allowing for the applicable modes described above
  • ADDABLE_ROOMS_VISIBLE - When set to on, dynamically added rooms are visible in the room list
  • DEFAULT_URL - URL redirected to from the index page, which can be one of the URLs listed below

The following URLs are provided which cater for the various modes described:

  • /rooms - List all rooms
  • /rooms/add - Add a room
  • /wait - Wait for someone
  • /waiting - View the waiting queue
  • /match - Join someone waiting
  • /random - Random match up
  • /about - Renders this README file

grillode's People

Contributors

stephenmcd avatar

Stargazers

 avatar

Watchers

 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.