A modern, real-time chat application with image sharing, secure authentication, and a Gemini AI-powered assistant. Built with React, Node.js, Socket.IO, and MongoDB.
- Real-time Messaging: Instant chat powered by Socket.IO.
- Image Sharing: Send and receive images in your conversations.
- Gemini AI Assistant: Chat with an integrated AI assistant for smart replies and help.
- Secure Authentication: JWT-based login and signup.
- Responsive UI: Beautiful, mobile-friendly design with theme support.
- Profile Management: Update your avatar and personal info.
- Frontend: React, Vite, Tailwind CSS, DaisyUI
- Backend: Node.js, Express.js
- Database: MongoDB (with Mongoose)
- Real-time: Socket.IO
- AI Integration: Google Gemini API
- Image Hosting: Cloudinary
git clone https://github.com/yourusername/chatcom.git
cd chatcomBackend:
cd backend
npm installFrontend:
cd ../frontend
npm installCreate a .env file in the backend folder:
PORT=5555
JWT_SECRET=your_jwt_secret
MONGODB_URI=your_mongodb_uri
CLOUDINARY_CLOUD_NAME=your_cloudinary_name
CLOUDINARY_API_KEY=your_cloudinary_key
CLOUDINARY_API_SECRET=your_cloudinary_secret
GEMINI_API_KEY=your_gemini_api_key
NODE_ENV=developmentBackend:
cd backend
npm run devFrontend:
cd ../frontend
npm run devOpen http://localhost:5173 in your browser.
- Build the frontend:
cd frontend npm run build - Serve the frontend from the backend:
- Make sure
NODE_ENV=productionin your backend.env - Start the backend:
cd backend npm start - Visit http://localhost:5555
- Make sure
ChatCom integrates with Google Gemini AI to provide smart, context-aware responses. Just start a conversation with the AI assistant in your chat list!
MIT License
Made with β€οΈ by Akula Sai Teja