โ Backend Integration Complete | ๐ฏ Frontend Development Ready
Comforter is an AI-powered spiritual## ๐จ Frontend Development Ready
- Welcome/Login Screen - User authentication and onboarding
- Home Dashboard - Quick access to all AI features
- AI Chat Screen - Real-time messaging interface
- Scripture Search - Biblical text search and results
- Devotionals/Prayers - Generated content viewing and management
- User Profile/Settings - Account management and preferences
- Theme: Minimalist Christian-inspired design
- Colors: Soft, calming palette with warm accents
- Experience: Focus on spiritual comfort and ease of use
/Comforter
โโโ AI/ # FastAPI AI Service (โ
Complete)
โ โโโ api/ # Main FastAPI application
โ โโโ orchestratorAgent/ # AI orchestration logic
โ โโโ [8 AI Agents]/ # Specialized AI functionality
โ โโโ utils/ # Shared utilities and authentication
โโโ Backend/ # Node.js Express Server (โ
Complete)
โ โโโ src/
โ โ โโโ routes/ # API routes and AI proxy
โ โ โโโ services/ # WebSocket and business logic
โ โ โโโ middleware/ # Authentication and validation
โ โ โโโ ...
โโโ Frontend/ # React Native App (๐ฏ In Development)
โโโ [To be implemented]
AI_SERVICE_URL=http://localhost:8888 # Development
AI_SERVICE_URL=http://ai-service:8888 # Docker
AI_SERVICE_TIMEOUT=30000
JWT_SECRET=your-jwt-secret
MONGODB_URI=mongodb://localhost:27017/comforter
SQL_URI=postgres://user:pass@localhost:5432/comforterOPENAI_API_KEY=your-openai-key
QDRANT_URL=http://localhost:6333
REDIS_URL=redis://localhost:6379
DATABASE_URL=postgres://user:pass@localhost:5432/comforter- AI Service:
AI/api/README.md- Complete API documentation - WebSocket Integration:
Backend/WEBSOCKET_COMPLETION_SUMMARY.md - Project Status:
todo- Detailed development progress
cd Backend
node test_docker_environment.jscurl http://localhost:8888/health
curl http://localhost:8888/docs # API documentation- AI Service Infrastructure with 8 specialized agents
- Node.js Backend with complete AI proxy integration
- WebSocket real-time chat functionality
- JWT authentication and rate limiting
- Docker containerization and testing
- Comprehensive documentation
- Frontend React Native development
- UI/UX design implementation
- WebSocket client integration
- Real-time chat interface
- Advanced features (typing indicators, presence)
- Message history and conversation persistence
- Production deployment and monitoring
- Mobile app store distributionuidance platform that provides real-time chat, scripture search, devotionals, prayers, and biblical commentary through intelligent AI agents. Built with a production-ready Node.js backend, FastAPI AI service, and WebSocket integration for seamless real-time communication.
- AI Service: 8 specialized AI agents with orchestrator (FastAPI on port 8888)
- Backend: Node.js Express server with complete AI proxy (port 3000)
- WebSocket: Real-time chat integration with JWT authentication
- Docker: Production-ready containerized environment
- Testing: Comprehensive end-to-end integration testing
- React Native/Frontend integration with WebSocket endpoints
- UI/UX implementation with Christian-inspired design
- Real-time chat interface development
- Real-Time AI Chat โ WebSocket-based instant messaging with spiritual AI guidance
- Scripture Search โ Natural language search through biblical texts
- Personalized Devotionals โ AI-generated daily devotionals and reflections
- Prayer Assistant โ Guided prayer generation and spiritual support
- Biblical Commentary โ AI-powered verse explanations and theological insights
- Study Guides โ Intelligent study material generation
- JWT Authentication โ Secure user authentication with token-based access
- Rate Limiting โ Redis-based request throttling and user protection
- WebSocket Proxy โ Real-time bidirectional communication
- Microservices Architecture โ Scalable Node.js backend with FastAPI AI service
- Docker Environment โ Complete containerized deployment solution
Frontend (React Native)
โ WebSocket/HTTP
Backend (Node.js + Express)
โ HTTP Proxy + WebSocket
AI Service (FastAPI + 8 Agents)
โ Database Access
Databases (PostgreSQL + MongoDB + Redis + Qdrant)
- Frontend: React Native mobile application (in development)
- Backend: Node.js/Express proxy server with WebSocket support
- AI Service: FastAPI service with 8 specialized AI agents
- WebSocket Service: Real-time chat with JWT authentication
- Databases: PostgreSQL, MongoDB, Redis (rate limiting), Qdrant (vector storage)
- Scripture Search Agent - Biblical text search and retrieval
- Chatbot Agent - Real-time spiritual conversation
- Devotional Creator Agent - Daily devotional generation
- Prayer Assistant Agent - Guided prayer creation
- Commentary Agent - Biblical commentary and explanation
- Study Guide Agent - Study material generation
- User Profile Agent - Personalization and preferences
- Web Search Agent - External content integration
cd /Users/zoro/Desktop/JR/Projects/Comforter
docker-compose up --build
# Services will be available at:
# Backend: http://localhost:3000
# AI Service: http://localhost:8888
# WebSocket: ws://localhost:3000/ws/chat# Terminal 1 - Start AI Service
cd AI
conda activate .venv/
python api/main.py
# Terminal 2 - Start Backend
cd Backend
npm install
npm run dev
# Terminal 3 - Test WebSocket
cd Backend
node test_docker_environment.jsPOST /api/ai/chat- AI chat messagesPOST /api/ai/scripture/search- Scripture searchPOST /api/ai/devotionals/generate- Generate devotionalsPOST /api/ai/prayers/generate- Generate prayersPOST /api/ai/commentary/generate- Generate commentaryPOST /api/ai/study-guides/generate- Generate study guidesGET /api/ai/health- AI service health check
ws://localhost:3000/ws/chat?token=JWT_TOKEN- Real-time chat
All endpoints require JWT Bearer token authentication:
Authorization: Bearer <your-jwt-token>We welcome contributions from developers, AI researchers, theologians, and UI/UX designers. Whether you want to:
- Developers: Enhance backend functionality, add new AI agents, or improve WebSocket features
- Frontend Developers: Build the React Native interface and implement WebSocket client
- Designers: Create beautiful, spiritual UI/UX designs in Figma
- Theologians: Improve AI responses and biblical accuracy
- Testers: Help test functionality and report issues
Feel free to submit issues, feature requests, or pull requests.
- Issues: Use GitHub Issues for bug reports and feature requests
- Documentation: Check the
todofile for current development status - Testing: Run the test scripts in the Backend directory for integration testing
Last Updated: June 9, 2025
Status: Backend & WebSocket Integration Complete โ
| Frontend Development Ready ๐ฏ
Built with โค๏ธ for spiritual growth and community