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

https://github.com/nikdrosakis/socketio-chat-mysql

a socketio chat implemention with mysql
https://github.com/nikdrosakis/socketio-chat-mysql

chat nodejs socket-io

Last synced: 11 months ago
JSON representation

a socketio chat implemention with mysql

Awesome Lists containing this project

README

          

#a socketio chat implemention with mysql embedded

SETUP

1. Create Database niklab
2. Run chat.sql
3. Edit chat.server.js file adding mysql host, username, password. Replace test.gr with server's host at chat.server.js, chat.js files
4. install nodejs if not already installed in your system
5. Run npm install command line to install all the necessary node-modules from package.json
6. Run node chat.server.js command line to connect socket (by default at port 3000)
7. Open webpage [host]:3000/chat.html to run the chat
8. Open webpage [host] to run chat embedded in index.php or include iframe to any file (changing host iframe src)

TODO


- multiusers list from db
- user images
- display writing... effect
- multiple chat