English | 简体中文
The frontend project of Health Management Platform, a modern health management system built with Vue 3. Provides intuitive user interfaces and rich data visualization features to help users better manage their personal health.
- Vue 3 - Using Composition API for better code organization and reusability
- Element Plus - Vue 3 based component library with rich UI components
- ECharts - Powerful data visualization library for health data charts
- Vuex - State management for unified application state handling
- Vue Router - Routing management
- Axios - HTTP client for backend API communication
- Comprehensive Health Monitoring - Track heart rate, blood pressure, weight, BMI, sleep, and more
- Exercise Management - Activity logging, goal setting, and leaderboard incentives
- Diet Management - Nutrition tracking, food database, and smart analysis
- Medication Management - Medicine records and reminders
- Health Reports - Smart analysis, health scoring, and personalized recommendations
- AI Consultation - Integrated with ERNIE Bot API for health consultation
- Community Forum - Share experiences, publish articles, and interact with others
- Node.js 20.17.0+
- npm 10.9.0+
- Clone the repository
git clone https://github.com/nova728/healthplatform_front
cd healthplatform_front- Install dependencies
npm install- Start development server
npm run dev- Access the application
http://localhost:5173
npm run buildhealthplatform_front/
├── src/
│ ├── api/ # API interface encapsulation
│ ├── assets/ # Static resources
│ ├── components/ # Common components
│ ├── views/ # Page views
│ │ ├── health/ # Health center pages
│ │ ├── forum/ # Community forum pages
│ │ └── user/ # User related pages
│ ├── router/ # Router configuration
│ ├── store/ # Vuex state management
│ ├── utils/ # Utility functions
│ ├── App.vue # Root component
│ └── main.js # Entry file
├── public/ # Public resources
├── package.json # Project configuration
└── vite.config.js # Vite configuration
- Multi-dimensional health indicator tracking
- Visual data trend charts
- Intelligent health assessment
- Data export functionality
- Multiple exercise type support
- Duration and calorie statistics
- Personal goal setting
- Leaderboard and achievement system
- Nutrition intake recording
- Food database search
- Nutrition analysis and recommendations
- Meal plan management
- Medication records and reminders
- Drug information lookup
- Medication plan management
- Comprehensive health scoring
- Abnormal indicator alerts
- Historical report comparison
- Personalized health recommendations
- Article publishing and editing
- Like, bookmark, and comment features
- Topic categorization and search
- Trending content recommendations
- Adapts to multiple device sizes
- Mobile-friendly user interface
- Smooth interaction experience
- Rich chart types using ECharts
- Adaptive chart layout
- Interactive data exploration
- Component lazy loading
- Route lazy loading
- Image lazy loading
- Keep-alive component caching
- Request debouncing and throttling
- Smooth page transition animations
- Friendly loading state indicators
- Comprehensive error handling
- Responsive form validation
The project uses ESLint for code checking. Ensure code meets standards:
npm run lintCreate .env.development and .env.production files in the project root:
# Development environment
VITE_API_BASE_URL=http://localhost:8080/api
# Production environment
VITE_API_BASE_URL=https://your-api-domain.com/apiAll API interfaces are encapsulated in the src/api/ directory, organized by functional modules:
user.js- User-related interfaceshealth.js- Health data interfacesexercise.js- Exercise tracking interfacesdiet.js- Diet management interfacesmedication.js- Medication management interfacesforum.js- Community forum interfaces
Issues and Pull Requests are welcome!
- Fork this repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Backend Repository: healthplatform
- Desktop Application: healthplatform_electron
This project is licensed under the MIT License - see the LICENSE file for details
For questions or suggestions, please contact us through Issues.
⭐ If this project helps you, please give us a Star!