This is an AI-powered personal health advisor system that supports uploading medical records (including text, images, and files) and real-time conversations. The AI model provides responses based on comprehensive analysis of all available medical records.
- Support for multiple medical record formats (text, images, PDF, etc.)
- Maintains coherent conversation context
- Comprehensive analysis and responses based on all uploaded medical records
- Configurable API key settings
- React.js
- Ant Design Component Library
- Axios for API requests
- Flutter SDK
- Provider for state management
- HTTP package for API requests
- Flutter Markdown for rendering content
- Node.js + Express
- MongoDB for storing user data and conversation history
- Multer for file upload handling
- Node.js (v14+)
- MongoDB
- API keys
- Flutter SDK (v3.9+) for Android development
- Android Studio with Android SDK installed
- JDK 11 or newer
- Clone repository
git clone https://github.com/gyp199009/Health-Advisor.git
cd health-advisor
- Install backend dependencies
cd backend
npm install
- Install web frontend dependencies
cd ../frontend
npm install
- Install Flutter frontend dependencies
cd ../flutter_frontend
flutter pub get
-
Configure environment variables
- Create .env file in the backend directory and add the following:
VOLCENGINE_API_KEY=your_volcengine_api_key DEEPSEEK_API_KEY=your_deepseek_api_key OPENAI_API_KEY=your_openai_api_key ANTHROPIC_API_KEY=your_anthropic_api_key OLLAMA_API_ENDPOINT=http://localhost:11434 MAX_FILE_SIZE=10485760 # 10MB -
Start the application
- Start backend:
cd backend npm start- Start web frontend:
cd frontend npm start- Run Flutter Android app:
cd flutter_frontend flutter run或者使用Android Studio打开flutter_frontend/android目录并运行应用
-
Access the application
- Web版本: 打开浏览器访问 http://localhost:3000
- Android版本: 通过Flutter运行在连接的Android设备或模拟器上
- 注册/登录您的账户
- 上传医疗记录(支持文本、图像、PDF格式)
- 与AI健康顾问进行对话,获取健康建议
- 在Android设备上安装并启动应用
- 注册/登录您的账户
- 上传医疗记录(支持文本、图像格式)
- 与AI健康顾问进行对话,获取健康建议
-
项目结构
- lib/: 包含所有Dart源代码
- android/: Android平台特定配置
- ios/: iOS平台特定配置(如需支持)
- pubspec.yaml: 依赖管理配置文件
-
构建Android APK
cd flutter_frontend flutter build apk --release生成的APK文件位于
flutter_frontend/build/app/outputs/flutter-apk/app-release.apk
http://ec2-18-142-230-119.ap-southeast-1.compute.amazonaws.com
- This application provides reference suggestions only and cannot replace professional medical diagnosis and treatment
- Ensure uploaded medical records do not contain sensitive personal information
- Keep your API keys secure and do not share them with others