Real-time multilingual chat application with AI-powered translation
- Real-time multilingual messaging with <1s translation-reception latency
- Gemini 2.0 Flash integration for accurate message translation
- Supports 10+ languages with 96%+ translation accuracy
- Socket.io for instant message delivery
- MongoDB for persistent chat history
- Responsive React frontend with modern UI
| Category | Technologies |
|---|---|
| Frontend | React, Socket.io-client |
| Backend | Node.js, Express, Socket.io |
| AI | Gemini Pro API |
| Database | MongoDB |
| DevOps | Git, GitHub |
# Clone repository
git clone https://github.com/yourusername/polychat.git
cd polychat
# Install backend dependencies
cd server
npm install
# Install frontend dependencies
cd ../client
npm install
# Set up environment variables
# Backend (.env in server folder)
cd ../server
cp .env.example .env
# Edit .env and add your values:
# PORT=8747
# JWT_KEY=your_secure_random_string
# ORIGIN=http://localhost:5173
# DATABASE_URL=your_mongodb_connection_string
# GEMINI_API_KEY=your_gemini_api_key
# Frontend (.env in client folder)
cd ../client
cp .env.example .env
# Edit .env and add:
# VITE_SERVER_URL=http://localhost:8747
# Run backend server (from server folder)
cd ../server
npm start
# or for development with auto-reload:
npm run dev
# Run frontend (from client folder, in a new terminal)
cd ../client
npm run devThis application is ready for deployment with:
- Backend: Render.com (or any Node.js hosting)
- Frontend: Vercel (or Netlify)
📖 Deployment Guides:
- Complete Deployment Guide - Full detailed guide
- Render Backend Guide - Deploy backend first
- Vercel Frontend Guide - Deploy frontend second
- 🔧 Deploy backend on Render first → Guide
- 🔗 Get backend URL and update frontend environment variable
- 🎨 Deploy frontend on Vercel → Guide
- ✅ Update backend CORS settings with frontend URL
PORT=8747
JWT_KEY=your_jwt_secret_key_here
ORIGIN=http://localhost:5173,https://your-frontend-url.vercel.app
DATABASE_URL=mongodb+srv://username:password@cluster.mongodb.net/dbname
GEMINI_API_KEY=your_gemini_api_key_hereVITE_SERVER_URL=http://localhost:8747
# For production: https://your-backend-url.onrender.com