HealthVault is a secure and efficient medical record management platform designed to provide quick access to health data while maintaining encrypted privacy. By integrating an AI-powered chatbot, it enhances user experience by offering smart recommendations on home remedies and health-related queries. This platform is tailored for individuals, caregivers, and healthcare professionals who need seamless access to medical records, ensuring better self-care and informed decision-making.
- ⚡ Quick & Simple – Fast access to your health data anywhere.
- 📂 Easy Records Access – Manage all your medical history in one place.
- 🤖 AI-Chatbot – Get smart recommendations on home remedies & health-related queries.
- 🔒 Secure Data – Your medical records are encrypted and safe.
- 👤 Role-Based Access Control (RBAC) – Supports Patient, Doctor, and Admin roles with role-specific dashboards.
- Frontend: React.js with Vite
- Backend: Node.js
- AI/ML: LLama3-8b with Groq AI
- Database: Supabase
- Install Node.js
- Clone the repository:
git clone https://github.com/Priyanka-28-BM/HealthVault.git cd HealthVault - Backend Setup:
cd server npm install nodemon index.js - Frontend Setup:
cd client npm install npm run dev
The selected role is stored in Supabase's profiles table and linked to their user ID.
Upon login, the app fetches the user's role and redirects them to their role-specific dashboard:
/patient-dashboard
/doctor-dashboard
/admin-dashboard
🎯 This ensures that only authorized roles can access their respective sections.
- Set up environment variables (Add your API key from Groq)
export GROQ_API_KEY="your_api_key_here"
- Run the chatbot server
// Make a request to the Groq API for generating a chatbot response const response = await axios.post( "https://api.groq.com", // Groq API endpoint { model: "model_name", messages: [{ role: "user", content: message }], }, { headers: { Authorization: `Bearer ${GROQ_API_KEY}` }, } );
- Run the backend server using the setup instructions above.
- Start the frontend and access the platform via your browser.
- Sign up or log in to securely manage your medical records.
- Interact with the AI chatbot for health recommendations.
Contributions are welcome! Feel free to fork the repository and submit a pull request with improvements or new features.
This project is licensed under the MIT License.
For any queries or suggestions, feel free to reach out!