To see demo please visit jquery-chat.net
Note: By default the chat is configured to use an existing Heroku app, so you will not need to install Node and npm. (Skip step 3 in the installation process)
NEW: With the latest changes we also support python server. So you could have python server instead Node.js if you want.
Alert: At this time, the chat only support socket.io version 0.9.x. ASAP there is a future plan to update to version 1.x of socket.io, please be patient, take a look in this issue to see progress.
Take a look at index.html for simple example of usage.
- Install any Webserver (Apache, IIS, Nginx, Lighttpd, etc)
Remember to clone the project behind a webserver, if you want to execute local file index.html it wont work.
1. Clone the project
$ cd /var/www/ $ git clone https://github.com/lovelle/jquery-chat $ cd jquery-chat
# Go to cloned project $ cd /var/www/jquery-chat/ # Adjust personal setting to 'server' ip or dns $ editor config.js # And the same for line 11 in index.html $ editor index.html
3. Install and run Server
For node.js server follow these instructions.
For python server follow these instructions.
Lets it, to finish remember you must have a webserver, if you dont want to install a full webserver you can do it with python server:
# Go to project folder $ cd /var/www/jquery-chat # Run webserver with python lib $ python -m SimpleHTTPServer
Finish!, go to visit http://localhost:8000/
This chat was made in my free time, please be gentle. For any doubt feel free to create an issue.
Why there is a python server if all server logic allready exist in Node.js?
- For fun.
- For anyone who didn't know node.js and wants to understand how server works.
- To be more compatibilty friendly.
Will be the server be supported in others languages?
- Yep, ASAP.