Use Nodejs+express+socketio+mysql to build chat rooms
Nodejs related information has been many, I also study it, so the socket tutorial looked under, learned to do a chat room, and then added a simple operation MySQL data inventory chat records. Express is mainly made of routing and jade Templates. I am using the foreign free space hosting, domestic various filings, its access address is: Nodejs chat room http://chat.lovewebgames.com/, as follows:
The following plugins are used:
"Socket.io": "~1.3.5", "Body-parser": "~1.12.4", "Cookie-parser": "~1.3.5", "Debug": "~2.2.0", " Express ":" ~4.12.4 ", " Jade ":" ~1.9.2 ", " Morgan ":" ~1.5.3 ", " Serve-favicon ":" ~2.2.1 ", " Markdown-js ":" >= 0.0.1 ", " MySQL ":" 2.0.0-alpha9 ", " XSS ":" 0.2.2 "
Git address is https://github.com/tianxiangbing/chat, code I do not explain, a variety of Baidu out of the results. Can add QQ Group (5678537) to discuss together.
Use Nodejs+express+socketio+mysql to build chat rooms