metadata
title: Chat App Server
emoji: 💬
colorFrom: purple
colorTo: blue
sdk: docker
pinned: false
Chat App Server
Backend server for Chat App Premium - Real-time messaging with MongoDB.
Features
- REST API for messages
- MongoDB Atlas integration
- CORS enabled
- Real-time message storage
API Endpoints
GET /messages
Returns last 50 messages
POST /messages
Create new message
Body:
{
"text": "Hello",
"senderId": "user123",
"senderName": "John",
"isAi": false
}
Environment Variables
MONGO_URI: MongoDB connection stringPORT: Server port (default: 7860)