BayMaxx is an AI-powered emotional and medical assistant inspired by Big Hero 6. It offers personalized interactions, medical diagnosis, emotional support, and voice-based communication. Key features include emotion detection, sentiment analysis, speech recognition, and continuous learning for improvement.
BayMaxx/
│
├── 📂 backend/ # Core Backend Services
│ ├── 📜 server.js # Main Express Server & WebSockets
│ ├── 📂 config/ # Configurations
│ │ ├── database.js # PostgreSQL & MongoDB Config
│ │ ├── cache.js # Redis Cache Config
│ │ ├── env.js # Global Environment Variables
│ │ ├── security.js # Security Config (CORS, Rate Limiting)
│ │
│ ├── 📂 microservices/ # Decoupled AI & Service Logic
│ │ ├── authService/ # Authentication & User Management
│ │ │ ├── authController.js
│ │ │ ├── authService.js
│ │ │ ├── authRoutes.js
│ │ │ ├── models/
│ │ │ │ ├── User.js
│ │ │ │ ├── Session.js
│ │ │ ├── middleware/
│ │ │ │ ├── authMiddleware.js
│ │
│ │ ├── aiService/ # AI & Machine Learning
│ │ │ ├── emotionAnalysis.js # Emotion AI
│ │ │ ├── sentimentAnalysis.js # NLP AI
│ │ │ ├── medicalDiagnosis.js # AI Medical System
│ │ │ ├── eqAnalysis.js # Empathy Quotient Analysis
│ │ │ ├── facialExpression.js # AI-Powered Avatar UI
│ │ │ ├── voiceProcessing.js # Voice & Speech-to-Text AI
│ │ │ ├── utils/
│ │ │ │ ├── preProcess.js # AI Preprocessing Utils
│ │ │ │ ├── postProcess.js # AI Postprocessing Utils
│ │
│ │ ├── chatService/ # AI Chat System
│ │ │ ├── chatController.js
│ │ │ ├── chatService.js
│ │ │ ├── chatRoutes.js
│ │ │ ├── models/
│ │ │ │ ├── ChatSession.js
│ │ │ │ ├── ChatHistory.js
│ │
│ │ ├── dataService/ # Data & Analytics
│ │ │ ├── analyticsService.js
│ │ │ ├── loggerService.js
│ │ │ ├── userTracking.js
│ │
│ ├── 📂 database/ # Database Models
│ │ ├── schemas/
│ │ │ ├── User.js
│ │ │ ├── Chat.js
│ │ │ ├── MedicalData.js
│ │ ├── migrations/
│ │ ├── seeds/
│ │
│ ├── 📂 middleware/ # Security & Performance Middleware
│ │ ├── authMiddleware.js
│ │ ├── errorHandler.js
│ │ ├── requestLogger.js
│ │ ├── rateLimiter.js
│ │ ├── cacheMiddleware.js
│ │
│ ├── 📂 utils/ # Utility Functions
│ │ ├── apiHandler.js
│ │ ├── logger.js
│ │ ├── validators.js
│ │
│ ├── 📂 tests/ # Automated Testing
│ │ ├── test_auth.js
│ │ ├── test_chat.js
│ │ ├── test_ai.js
│
├── 📂 frontend/ # Next.js Frontend
│ ├── 📂 components/ # Reusable UI Components
│ │ ├── ChatUI.jsx
│ │ ├── Avatar3D.jsx
│ │ ├── Dashboard.jsx
│ │
│ ├── 📂 pages/ # Page Routes
│ │ ├── index.jsx
│ │ ├── login.jsx
│ │ ├── chat.jsx
│ │
│ ├── 📂 styles/ # Styling
│ │ ├── global.css
│ │ ├── theme.css
│
│ ├── 📂 services/ # Frontend API Calls
│ │ ├── api.js
│
│ ├── 📂 hooks/ # Custom React Hooks
│ │ ├── useChat.js
│ │ ├── useAuth.js
│
│ ├── 📜 next.config.js # Next.js Config
│ ├── 📜 package.json # NPM Dependencies
│ ├── 📜 README.md # Frontend Docs
│
├── 📂 deployment/ # DevOps & Deployment
│ ├── 📜 Dockerfile # Containerization
│ ├── 📜 docker-compose.yml # Multi-Container Deployment
│ ├── 📜 k8s-deployment.yaml # Kubernetes Deployment
│ ├── 📜 github-actions.yml # CI/CD Pipeline
│
└── 📂 docs/ # Documentation
├── 📜 API.md # API Docs
├── 📜 SYSTEM_ARCHITECTURE.md # Architecture Docs