Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/tegioz/chat
- Owner: tegioz
- License: apache-2.0
- Created: 2012-09-29T22:43:45.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T16:03:22.000Z (over 4 years ago)
- Last Synced: 2024-04-15T12:24:25.023Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 163 KB
- Stars: 347
- Watchers: 39
- Forks: 181
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome - tegioz/chat - Simple Chat built with Node.js, Socket.io, Express & Redis (+ client built with Bootstrap) (JavaScript)
README
# SimpleChat
Built with:
- Server side: Node.js, Socket.io, Express, Redis
- Client side: HTML5 Boilerplate, Bootstrap, Handlebars and jQueryThis 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-serverLaunch 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!"}