AI-powered chatbot backend with multilingual support, location-based recommendations, and real-time chat via WebSockets.
- 🤖 Gemini AI Integration - Powered by Google's Gemini 1.5 Pro
- 🌍 Multilingual Support - 20+ languages with automatic detection
- 📍 Location-Based Search - Google Maps API integration for nearby places
- 💬 Real-time Chat - WebSocket support via Socket.IO
- 🔐 Authentication - JWT-based user authentication
- 📊 MongoDB Database - User data and chat history storage
- Node.js + Express.js
- Socket.IO for WebSockets
- MongoDB with Mongoose
- Google Gemini AI API
- Google Maps Places API
- JWT Authentication
Required environment variables:
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret_key
GEMINI_API_KEY=your_gemini_api_key
GOOGLE_MAPS_API_KEY=your_google_maps_api_key
FRONTEND_URL=your_frontend_url
ALLOWED_ORIGINS=your_frontend_url
NODE_ENV=production
PORT=5001- Create a new Web Service on Render
- Connect your GitHub repository
- Set build command:
npm install - Set start command:
npm start - Add all environment variables in Render dashboard
- Deploy!
npm install
npm run devServer will run on http://localhost:5001
POST /api/auth/register- User registrationPOST /api/auth/login- User loginGET /api/user/profile- Get user profilePOST /api/user/location- Update user locationGET /api/chats- Get user's chat historyPOST /api/chats- Create new chat- WebSocket connection for real-time chat
MIT