Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tegioz/chat

Simple Chat built with Node.js, Socket.io, Express & Redis (+ client built with Bootstrap)
https://github.com/tegioz/chat

Last synced: about 2 months ago
JSON representation

Simple Chat built with Node.js, Socket.io, Express & Redis (+ client built with Bootstrap)

Awesome Lists containing this project

README

        

# 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.

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