Skip to content

PeopleHalpingPeople/Server

Repository files navigation

People Helping People

Private Chat Application using MongoDB and Socket.io

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.

Tech-stack -

  • JavaScript
  • http (server)
  • Node.js
  • Socket.io (real-time interaction between the client and the server)
  • MongoDB (database to store chats)
  • Netlify (deployment)

Features of this app -

  • 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

Usage Guide -

  1. Install Node.js and MongoDB on your system. Check using the following commands in the terminal -
node -v

mongod --version
  1. 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>
  1. Recieve messages that were stored in chat database

  2. Start chatting

  • Private Message: /to < RecieverUserName > < message >
  • Global Message: < message >
  1. To Disconnect ctrl-c

UML -

About

Back end for People Helping People

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published