A fully responsive real-time messaging platform built with modern technologies, supporting both one-to-one and group conversations with live updates, typing indicators, message lazy loading, and more. This platform is designed for seamless and secure communication, suitable for high-traffic environments.
https://chat-website-phi-pearl.vercel.app
- Real-time secure chat:
One-to-one and group conversations with instant message delivery powered by Socket.io. - Typing indicators:
See when other users are typing in real time. - Scroll to load previous messages:
Lazy loading for efficient fetching and smooth performance. - User experience:
Optimized for speed, scalability, and real-world usability.
Frontend:
- React
- Redux
- TypeScript
- Vite
Backend:
- Node.js
- Express.js
- Mongoose (MongoDB)
- Socket.io
- TypeScript
chat-app-frontend/
# Frontend React code
chat-app-server/
# Backend Node.js/Express.js code
git clone https://github.com/MdSaifulIslamRafsan/chat-website.git- Backend:
cd chat-app-server npm install - Frontend:
cd chat-app-frontend npm install
Create .env files as described above in both chat-app-server and chat-app-frontend folders.
PORT=5000
MONGO_URL=your_mongodb_connection_string
NODE_ENV=development
JWT_ACCESS_SECRET=your_access_token_secret
JWT_REFRESH_SECRET=your_refresh_token_secret
JWT_ACCESS_EXPIRES_IN=86400
JWT_REFRESH_EXPIRES_IN=31540000
VITE_API_BASE_URL=http://localhost:5000/api/v1
VITE_WEBSOCKET_URL=http://localhost:5000
VITE_IMAGE_HOSTING_KEY=your_imagebb_api_key
cd chat-app-server
npm run start:devBackend will be running on: http://localhost:5000
cd chat-app-frontend
npm run devFrontend will be running on: typically http://localhost:5173