Simple Chat built with Node.js, Socket.io, Express & Redis (+ client built with Bootstrap)
Switch branches/tags
Nothing to show
Pull request Compare This branch is 19 commits behind tegioz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
static
test
.gitignore
README.md
chatServer.js
package.json

README.md

SimpleChat

Built with:

  • Server side: Node.js, Socket.io, Express, Redis
  • Client side: HTML5 Boilerplate, Bootstrap, Handlebars and jQuery

This is just a proof of concept of what could be done with these technologies.

If you just want to see it running, visit: http://www.tegioz.com:8888

Requires

  • Node.js
  • NPM (Node Package Manager)
  • Redis

Get the code

git clone git@github.com:tegioz/chat.git

Run

Fetch dependencies:

npm install

Launch Redis:

redis-server

Launch chat server:

(don't forget to launch Redis before!)

node chatServer.js

Now open this URL in your browser:

http://localhost:8888/

and you're done ;)

Broadcast API

Send messages to all connected users:

Content-Type: application/json
POST /api/broadcast/

{"msg": "Hello!"}