Real-Time Chat Application in Node.Js Using Express, Mongoose, and Socket.Io
The app allows multiple users to chat together, and messages will update without refreshing the page.
Express.js , is a web application framework for Node.js.
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.
Body-Parser extracts the entire body portion of an incoming request stream and exposes it.
Routing refers to how an application’s endpoints (URIs) respond to client requests. You define routing using methods of the Express app object that correspond to HTTP methods: app.get() to handle GET requests and app.post() to handle POST requests.
a push notification system is used send messages from server to client, each time the server is updated (a message is posted). Tis system was impelemented using socket.Io
Socket.IO is a JavaScript library for real-time web applications. It enables real-time, bi-directional communication between web clients and server and has two parts: a client-side library that runs in the browser and a server-side library for Node.js. Socket.io enables real-time bidirectional event-based communication.