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
Deployed on Vercel
🔗https://livechat-orpin.vercel.app/
Frontend github link 🔗
https://github.com/Primordial579/LiveChat-Frontend.git
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.comfrom your configured Gmail - The email includes a direct link to
host2.htmlso Host 2 can join the chat
Installation Instructions (Local)
- git clone https://github.com/your-username/LiveChat.git
- cd LiveChat
- npm install
- node server.js
Required NPM Packages
- npm install express socket.io nodemailer body-parser cors