django-realtime-tutorial icon indicating copy to clipboard operation
django-realtime-tutorial copied to clipboard

node chat.js not working

Open vkaadheeshwar opened this issue 9 years ago • 3 comments

on typing node chat.js in terminal... localhos has no effect.. i followed all steps installed all dependencies... pls help

vkaadheeshwar avatar Jun 15 '15 15:06 vkaadheeshwar

Does the server start up or do you see an error? I'd also recommend checking out https://github.com/mburst/gevent-socketio-starterkit While it is also a bit dated, and doesn't have a complete tutorial with it, it skips nodejs and just relies on Python for the socket handling. With that said if you want to go the Node.js route I can help you with that as well.

mburst avatar Jun 15 '15 16:06 mburst

server gets started on localhost port : 3000 with a textbox whr i can enter text but nothing beyond... it isnt listening on port 4000... i havent changed ur github code still dont understand y it doesnt work? pls help

vkaadheeshwar avatar Jun 16 '15 02:06 vkaadheeshwar

The code is pretty outdated so there could be a possible issue. I'd recommend deleting your node_modules folder inside django-realtime-tutorial/nodejs and then re-running npm install. Then from the nodejs directory run node chat.js.

It sounds like you're not running the node server properly if nothing is listening on port 4000. You should have 2 terminals open to get this running. One to run the Django server and another to run the node server. Sorry if some of this stuff seems obvious. I can't really help you debug without an error logs or stacktraces though.

Let me know if this was of any help.

mburst avatar Jun 16 '15 04:06 mburst