Description: This chat room is based on node. JS implements the basic real-time communication functionality. Prior to this, there is no knowledge of node. js and MongoDB, but by flipping through blogs, you have basically achieved the desired results. Technology, should not be behind closed doors, but learn to share the summary in order to progress. Therefore, I want to record my learning experience. Do not like to spray.
Technology selection:
Database: MongoDB
Real-time communication: Socket.io
Server: node. js
Backstage: node. js
Front-end JS Library: jquery
The database chose MongoDB because MongoDB is a product between relational and non-relational, storage format Bson, similar to JSON, can store a variety of complex data types, followed by MongoDB Curd statement is very convenient, greatly improve the development efficiency. Of course it also has shortcomings, MongoDB assumes that the server has a lot of storage space, compared to the resources. In addition, in order to facilitate development, the use of Studio 3T, this MongoDB visualization tool.
node. js undoubtedly occupies an important place throughout the demo, its function is to create a Web server, and then as a background language, connect the operational database.
The front-end uses jquery primarily, and the login registration interface uses bootstrap, partly involving the jquery UI.
Introduction to the simple Chat room series based on node. js