Chatclient
Private Chat room in Ruby on Rails 3.0
Install / Use
/learn @prabgupt/ChatclientREADME
Private Chat Room in ruby on rails 3.0
This sample will let you develop a private chatRoom using juggernaut. It push chats in realtime based on publish/subscribe model.
Resources:
Nodejs - http://nodejs.org/ Redis - http://code.google.com/p/redis/ Juggernaut - https://github.com/maccman/juggernaut/ JQuery - http://mirror.ozdiy.com/assets/b8/2f96a12bc919b37e09d303b86ea1b9_1251811910.html
Steps::
- Install node-v0.2.5 Download available at: http://nodejs.org/dist/node-v0.2.5.tar.gz
2 Install redis 2.0.4 Download available at: http://code.google.com/p/redis/downloads/detail?name=redis-2.0.4.tar.gz&can=2&q=
- Run Redis server ./redis-server redis.conf
3 Install juggernaut git clone git://github.com/maccman/juggernaut.git --recursive cd juggernaut sudo node server.js
Till this point, you would have all things in place except that juggernaut would still not be able to publish chats onto channels. This feature will get enabled after Step#5
-
Now you are ready to implement private chat app in RoR3. To get a sample chat application: git clone git://github.com/prabgupt/chatclient.git --recursive cd chatclient
-
To enable publishing by Juggernaut, run: bundle install
-
run rails server: rails server
open URLS: localhost:3000/chat/channel1 localhost:3000/chat/channel2
channel1 and channel2 are assumed to be two users in this application who are trying to chat. You can multiple users likewise and can choose user IDs dynamically to open a unique channel between them.
Related Skills
node-connect
340.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.2kCommit, push, and open a PR
