SmartVital is a cutting-edge clinical intelligence and multi-disease risk prediction platform powered by AI and IoT. This repository contains the React frontend application.
- Framework: React 18, Vite
- Language: TypeScript
- Styling: TailwindCSS, Clay/Glassmorphism design
- State Management: Zustand
- Form Handling: React Hook Form + Zod validation
- Animations: Framer Motion
- Networking: Axios, WebSockets (for Live IoT data)
- Progressive Questionnaire Wizard: Multi-tier, layperson-friendly clinical data collection with automated feature inference.
- Role-Based Dashboards: Distinct interfaces tailored for Patients, Doctors, and Researchers.
- Live IoT Monitoring: Real-time data streaming (Heart Rate, SpO2, Temperature) using WebSockets.
- AI Explainability: Visual representations (SHAP/LIME charts) of machine learning predictions.
- Dynamic Theming: Seamless Dark/Light mode toggle.
- Responsive UI: Fully mobile-responsive interface.
- Node.js (v18 or higher)
- npm or yarn
- Clone the repository
- Install dependencies:
npm install
- Set up your environment variables by creating a
.envfile:VITE_API_URL=https://smartvital-backend.onrender.com VITE_WS_URL=wss://smartvital-backend.onrender.com/api/iot/ws
- Start the development server:
npm run dev
This frontend is optimized and deployed on Vercel.
The build command is npm run build with the output directory set to dist.