This repository contains a fully functional private chat application using MongoDB and Socket.io that supports real-time chatting globally or privately. This functionality is designed to connect people who need assistance to connect with others who can provide that.
- JavaScript
- http (server)
- Node.js
- Socket.io (real-time interaction between the client and the server)
- MongoDB (database to store chats)
- Netlify (deployment)
- The app contains real-time chat between two private users or a group
- The chat history can be retirieved later when the chat is accessed by the user
- The chat between two people will not be broadcasted to other users online
- If an active user sends a message to another user while they are offline, the other user will be able to retirieve message later when he accesses the chat
node -v
mongod --version
- Open your terminal and run the following -
git clone https://github.com/PeopleHalpingPeople/people-helping-people-backend
cd people-helping-people-backend
npm i
node server.js
node client.js <UserNameHere>
-
Recieve messages that were stored in chat database
-
Start chatting
- Private Message: /to < RecieverUserName > < message >
- Global Message: < message >
- To Disconnect
ctrl-c