I\'m new in building application with MEAN Stack, I\'m trying to build a real time chat app, here is my server side :
console.log(\"Server running...!\");
v
This is because you are using the connection string in an improper format.
You are using localhost:27017/db/chat while it should be mongodb://localhost:27017/db/chat
The pattern for the connection string is mongodb://
Article for reference: https://mongodb.github.io/node-mongodb-native/api-generated/mongoclient.html#mongoclient-connect