AI-powered personal health management system frontend built with React, TypeScript, and Tailwind CSS.
- 🔍 Disease Prediction - AI-powered disease prediction based on symptoms
- 📊 BMI Calculator - Calculate Body Mass Index with personalized suggestions
- 📄 Report Analysis - Upload and analyze medical reports with automatic insights
- ⏰ Medication Reminders - Smart reminders for timely medication intake
- React 19 - UI framework
- TypeScript - Type safety
- Vite - Build tool and dev server
- Tailwind CSS - Utility-first CSS framework
- React Router - Client-side routing
- Node.js (v18 or higher)
- npm or yarn
- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser and navigate to
http://localhost:5173
npm run buildThe production build will be in the dist directory.
npm run previewsrc/
├── components/
│ └── Layout.tsx # Main layout with navigation and footer
├── pages/
│ ├── Home.tsx # Landing page with feature overview
│ ├── DiseasePrediction.tsx # Disease prediction interface
│ ├── BMICalculator.tsx # BMI calculator with suggestions
│ ├── ReportAnalysis.tsx # Medical report upload and analysis
│ └── Reminders.tsx # Medication reminder management
├── App.tsx # Main app component with routing
├── main.tsx # Application entry point
└── index.css # Global styles and Tailwind imports
- Add symptoms via text input or common symptom buttons
- AI-powered prediction with confidence scores
- Visual feedback and result display
- Support for metric and imperial units
- Automatic BMI calculation and categorization
- Personalized health suggestions based on BMI range
- Visual BMI scale indicator
- Drag-and-drop file upload
- Support for PDF and text files
- Automatic parameter extraction and analysis
- Abnormalities detection and insights generation
- Create, edit, and delete reminders
- Custom scheduling (daily, weekly, or custom days)
- Enable/disable reminders
- Next reminder display
- Local storage persistence
The frontend is designed to integrate with a backend API. Currently, the API calls are mocked. To connect to your backend:
- Update API endpoints in each page component
- Replace mock data with actual API calls
- Handle authentication if required
- Add error handling for API failures
Replace mock functions in pages with actual API calls:
// Example: Disease Prediction
const handlePredict = async () => {
setLoading(true);
try {
const response = await fetch('/api/disease-predict', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ symptoms })
});
const data = await response.json();
setPrediction(data);
} catch (error) {
console.error('Prediction failed:', error);
} finally {
setLoading(false);
}
};The project uses Tailwind CSS with a custom color palette defined in tailwind.config.js. The brand colors are accessible via the brand-* classes.
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
This project is part of the Health Advisor system.
- Follow the existing code style
- Use TypeScript for type safety
- Ensure responsive design for mobile devices
- Test all features before committing
Note: This is a frontend-only implementation. Backend integration is required for full functionality.