Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple Chat built with Node.js, Socket.io, Express & Redis (+ client built with Bootstrap)
JavaScript HTML Handlebars Python CSS
Branch: master

Merge pull request #6 from cynthia-sg/patch-1

Added "trim" for cleaning spaces to join room
latest commit 66e8dc1feb
@tegioz authored
Failed to load latest commit information.
static Update main.js
test first commit
.gitignore README updated
LICENSE.txt Added license
README.md README updated
chatServer.js first commit
package.json Fixed dependencies versions

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://chat.tegioz.com

Requires

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

Get the code

git clone https://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!"}
Something went wrong with that request. Please try again.