tegioz / chat

Simple Chat built with Node.js, Socket.io, Express & Redis (+ client built with Bootstrap)
Apache License 2.0
348 stars 180 forks source link

SimpleChat

Built with:

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

Requires

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!"}