cjstone1982 / nodejs-pub-sub-chat-demo

Node.js + Redis Pub/Sub + socket.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chat based on Node.js using Redis Pub/Sub + socket.io

Simple application based to show Redis Pub/Sub mechanism together with Node.js and socket.io.

How to get the application running

  • Redis must be installed and running.
  • Node.js must be installed
  • npm install
  • npm run redis OR npm run sockets

Start via:

$ node app_redis.js

Fire up your favorite browser and go to “localhost”. Open more browser windows to see it in work.

Hint:
A non-redis version just based on socket.io can be started with:

$ node app.js

Credits

This example is based on a Cramp application originally written by Pieter Noordhuis and also based on cramp-pub-sub-chat-demo.

About

Node.js + Redis Pub/Sub + socket.io


Languages

Language:HTML 56.0%Language:JavaScript 44.0%