Giter Site home page Giter Site logo

chat-engine's Introduction

Chat Engine

Chat Engine is a lightweight rails engine that heavily uses jQuery and memcached to implement a very simple group chat room.

Status

Chat Engine has just been ported to rails 2.3, and its original design striped.

Features

  • You must enter a nickname to be part of the chat room.
  • All logged in users are shown in the user list
  • Lines in the chat that mention a users nickname are highlighted.
  • Inactivity timer will logout users from the client side.
  • rake task to logout users whose browsers do not allow ajax requests in the unload event.
  • The ability to mute specific users (from script/console). Muted users will see their own messages, but no one else will.

Usage

install chat-engine


  	./script/plugin install git://github.com/amiel/chat-engine.git
  

copy assets

  	rake chat:sync
  

include assets, don’t forget jquery

  	<%= stylesheet_link_tag 'chat' %>
  	<%= javascript_include_tag 'jquery-x.x.x.js', 'auto_scroll', 'chat' %>
  

use the chat_overlay partial

  	<%= render :partial => 'chats/chat_overlay' %>
  

thats it! it will work with memory_store, but is not persistent across mongrels. User mem_cached_store for best results.

For an example, check out http://github.com/amiel/chat-engine-example

History

This chat was originally written for Tatango.TV (http//tatango.tv).

chat-engine's People

Contributors

amiel avatar

Watchers

 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.