Skip to content

Primordial579/LiveChat-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💬 Live Chat Backend (Node.js + Socket.IO + Email)

This is the backend server for a real-time 2-person chat system. It handles:

  • Live chat between Host 1 and Host 2 using Socket.IO
  • Email notification to Host 2 when Host 1 initiates chat
  • Secure CORS-enabled connection for frontend hosted on Vercel
  • Temporary in-memory name storage for Host 1
  • Proper chatroom management (no duplicate messages)
  • No file uploads or emojis, for simplicity and speed

🌐 Live Frontend URL

Deployed on Vercel
🔗 https://livechat-orpin.vercel.app/

Frontend github link 🔗 https://github.com/Primordial579/LiveChat-Frontend.git


✉️ Email Notification (Nodemailer)

When a user enters their name and clicks "Chat" on Host 1’s page:

  • The name is stored in memory
  • An email is sent to arjav.prabhu@gmail.com from your configured Gmail
  • The email includes a direct link to host2.html so Host 2 can join the chat

Installation Instructions (Local)

Required NPM Packages

  • npm install express socket.io nodemailer body-parser cors

About

A real-time 2-person chat backend built with Node.js, Socket.IO, and Nodemailer — includes live messaging and email notification when a new chat is initiated.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors