A modern web application for comprehensive health monitoring, including blood pressure tracking, medication management, mood tracking, and goal setting.
- Firebase Authentication: Secure user registration and login
- User Profiles: Comprehensive health profiles with emergency contacts
- Data Privacy: All health data is encrypted and stored securely
- Session Management: Automatic session handling and secure logout
- Real-time Tracking: Log systolic, diastolic, and pulse readings
- Smart Categorization: Automatic classification (Normal, Elevated, High)
- Trend Analysis: Visual charts showing BP trends over time
- History Management: Complete reading history with search and filtering
- Alerts: Notifications for abnormal readings
- Medication Tracking: Add, edit, and manage medications
- Dosage Reminders: Customizable medication reminders
- Adherence Monitoring: Track medication compliance
- Refill Alerts: Automatic refill date notifications
- Side Effects Logging: Record and monitor side effects
- Daily Mood Logging: Quick mood check-ins with emoji interface
- Detailed Tracking: Comprehensive mood, energy, and stress monitoring
- Trend Analysis: Visual mood trends and patterns
- Mental Health Insights: AI-powered mood analysis and recommendations
- Activity Correlation: Link activities to mood changes
- Menstrual Cycle Tracking: Complete cycle monitoring with calendar visualization
- Reproductive Health: Contraception management and fertility tracking
- Breast Health: Self-exam reminders and mammogram tracking
- Gynecological Health: Pap smear and STI testing records
- Hormonal Health: PCOS and thyroid management tools
- Preventive Care: Well-woman exams and vaccination tracking
- Cycle Predictions: Smart predictions for periods and ovulation
- Symptom Tracking: Comprehensive symptom logging and analysis
- Limb Assessment: Comprehensive limb health monitoring and tracking
- Prosthetic Care: Prosthetic device maintenance and care reminders
- Pain Tracking: Detailed pain level monitoring and trend analysis
- DME Management: Durable medical equipment tracking and maintenance
- Care Reminders: Automated reminders for limb care routines
- Health Monitoring: Specialized tracking for mobility-related health
- Meal Tracking: Comprehensive nutrition logging and analysis
- Weight Monitoring: Weight loss progress tracking and goal setting
- Cholesterol Tracking: Cardiovascular health monitoring
- Nutritional Insights: AI-powered nutrition recommendations
- Weight Loss Plans: Personalized meal and exercise plans
- Health Metrics: BMI, body fat, and other health indicators
- Advanced Analytics: AI-powered health trend analysis
- Predictive Insights: Health risk assessment and recommendations
- Data Visualization: Interactive charts and health reports
- Medical Reports: Comprehensive health summaries for healthcare providers
- Health Trends: Long-term health pattern analysis
- Risk Assessment: Early warning system for health issues
- Health Goals: Set and track wellness objectives
- Progress Monitoring: Visual progress indicators
- Goal Categories: Blood pressure, medication, exercise, diet, mental health
- Achievement Celebrations: Milestone recognition and motivation
- Interactive Charts: Chart.js powered visualizations
- Health Trends: Comprehensive trend analysis
- Data Export: CSV, JSON, and PDF export options
- Health Reports: Detailed health summaries and insights
- Push Notifications: Real-time health reminders
- Customizable Alerts: Personalized notification settings
- Medication Reminders: Timely medication notifications
- Health Alerts: Abnormal reading notifications
- Offline Support: Full functionality without internet
- App-like Experience: Native app feel on all devices
- Installable: Add to home screen on mobile and desktop
- Background Sync: Automatic data synchronization
- Cross-platform: Works on iOS, Android, Windows, macOS, Linux
- Cloud Storage: Firebase Firestore for data persistence
- Offline Storage: Local caching for offline access
- Data Export: Multiple format export options
- Backup & Restore: Automatic data backup and recovery
π Primary URL (Firebase Hosting): https://bradley-health.web.app π± Alternative URL (GitHub Pages): https://ronb12.github.io/Bradley-Health/
Note: The Firebase-hosted version is the primary deployment with automatic updates. The GitHub Pages version is maintained as a backup.
- Modern web browser (Chrome, Firefox, Safari, Edge)
- Firebase project (for backend services)
- Node.js (for development)
-
Clone the repository
git clone https://github.com/ronb12/Bradley-Health.git cd Bradley-Health -
Set up Firebase
- Create a new Firebase project at Firebase Console
- Enable Authentication, Firestore, and Cloud Messaging
- Update
assets/js/firebase-config.jswith your Firebase credentials
-
Install dependencies (for development)
npm install
-
Start the development server
# Using Python (built-in) python3 -m http.server 8000 # Using Node.js npm start
-
Open in browser
http://localhost:8000
Bradley Health is configured for automatic deployment to Firebase Hosting:
- Make changes to your code
- Commit and push to main branch:
git add . git commit -m "Your changes" git push origin main
- Automatic deployment happens via GitHub Actions
- Live site updates at https://bradley-health.web.app
-
Quick deploy:
./deploy-to-firebase.sh
-
Step-by-step:
./sync-to-public.sh firebase deploy --only hosting
- Firebase Hosting (Primary) - https://bradley-health.web.app
- GitHub Pages (Backup) - https://ronb12.github.io/Bradley-Health/
- Local Development - http://localhost:8000
bradley-health/
βββ assets/ # Application assets
β βββ css/ # Stylesheets
β β βββ components.css # Main component styles
β β βββ theme.css # Theme management
β β βββ layout.css # Layout styles
β βββ js/ # JavaScript modules
β β βββ auth.js # Authentication system
β β βββ dashboard.js # Main dashboard logic
β β βββ blood-pressure.js # BP tracking
β β βββ medication-manager.js # Medication management
β β βββ mood-tracker.js # Mood tracking
β β βββ womens-health.js # Women's health tracking
β β βββ limb-care.js # Limb care and assessment
β β βββ dme-manager.js # Durable medical equipment
β β βββ nutrition-tracker.js # Nutrition tracking
β β βββ weight-loss.js # Weight management
β β βββ health-insights.js # Health analytics and insights
β β βββ profile-manager.js # User profile management
β β βββ goals-manager.js # Goal setting and tracking
β β βββ charts.js # Data visualization
β β βββ export.js # Data export
β β βββ notifications.js # Push notifications
β β βββ pwa-update.js # PWA update management
β β βββ theme-manager.js # Theme and UI management
β β βββ medical-report.js # Medical report generation
β β βββ legal.js # Legal and compliance
β β βββ firebase-config.js # Firebase setup
β βββ icons/ # App icons and images
βββ public/ # Firebase hosting directory
β βββ index.html # Main app (deployed version)
β βββ manifest.json # PWA manifest
β βββ service-worker.js # Service worker
β βββ offline.html # Offline page
β βββ assets/ # Copied assets for deployment
βββ .github/workflows/ # GitHub Actions
β βββ firebase-hosting-merge.yml # Auto-deploy on merge
β βββ firebase-hosting-pull-request.yml # PR previews
βββ scripts/ # Utility scripts
β βββ package.json # Script dependencies
β βββ *.js # Firebase management scripts
βββ index.html # Main app entry point
βββ manifest.json # PWA manifest
βββ service-worker.js # Service worker
βββ offline.html # Offline support page
βββ firebase.json # Firebase configuration
βββ firestore.rules # Database security rules
βββ firestore-indexes.json # Database indexes
βββ sync-to-public.sh # File sync script
βββ deploy-to-firebase.sh # Deployment script
βββ DEPLOYMENT.md # Deployment guide
βββ README.md # This file
- Comprehensive Women's Health Tracking: Complete menstrual cycle, reproductive health, and preventive care
- Menstrual Cycle Calendar: Visual calendar with color-coded cycle events and predictions
- Reproductive Health Management: Contraception tracking and fertility monitoring
- Breast Health Monitoring: Self-exam reminders and mammogram tracking
- Gynecological Health Records: Pap smear and STI testing management
- Hormonal Health Tools: PCOS and thyroid health tracking
- Preventive Care Tracking: Well-woman exams and vaccination records
- Smart Mood Integration: Links to existing mood tab for hormonal mood tracking
- Privacy-Focused Design: Secure handling of sensitive health information
- Fixed Label Associations: Corrected all form label accessibility issues
- Enhanced Screen Reader Support: Improved navigation for assistive technologies
- WCAG Compliance: Full compliance with web accessibility guidelines
- Better Form Structure: Proper fieldset/legend usage for grouped controls
- GitHub Actions configured for automatic deployment
- Firebase Hosting integration with live site at https://bradley-health.web.app
- PR Previews for testing changes before merging
- File Sync Scripts for seamless deployment management
- Fixed caching issues for local development and production
- Offline support with beautiful offline page
- Smart path detection for development vs production environments
- Improved error handling and graceful degradation
- Enhanced error handling for Firestore connection issues
- Better offline/online state management
- Improved authentication flow with proper error messages
- Optimized database queries and caching
- Women's Health Collections: 6 dedicated Firebase collections for comprehensive data storage
- Fixed service worker caching for all static assets
- Improved PWA installation experience
- Better error messages and user feedback
- Enhanced offline functionality
- Beautiful UI Components: Modern, responsive design for all new features
- β Firebase Hosting: https://bradley-health.web.app (Primary)
- β GitHub Pages: https://ronb12.github.io/Bradley-Health/ (Backup)
- β Local Development: http://localhost:8000
- β Automatic Deployment: Configured and active
- HTML5: Semantic markup and accessibility
- CSS3: Modern styling with Grid and Flexbox
- JavaScript (ES6+): Modern JavaScript features
- Chart.js: Data visualization library
- Progressive Web App: Offline-first architecture
- Firebase Authentication: User management
- Firestore: NoSQL database
- Firebase Cloud Messaging: Push notifications
- Firebase Hosting: Static hosting
- GitHub Actions: Automated deployment
- Firebase CLI: Deployment management
- Service Worker: Offline functionality
- Git: Version control
- Register Account: Create a new account with email and password
- Complete Profile: Add your basic health information
- Set Preferences: Configure notification settings
- Add Medications: Enter your current medications
- Set Goals: Define your health objectives
- Dashboard: Check your health overview
- Blood Pressure: Log daily readings
- Medications: Mark medications as taken
- Mood Check: Log your daily mood
- Review Progress: Check goal progress
- Export Data: Download your health data
- View Trends: Analyze your health patterns
- Set Reminders: Configure medication reminders
- Update Profile: Keep information current
// assets/js/firebase-config.js
const firebaseConfig = {
apiKey: "your-api-key",
authDomain: "your-project.firebaseapp.com",
projectId: "your-project-id",
storageBucket: "your-project.appspot.com",
messagingSenderId: "your-sender-id",
appId: "your-app-id"
};The app uses the following Firestore collections:
bloodPressure- Blood pressure readingsmedications- Medication trackingmoodEntries- Mood and mental health datagoals- Health goals and objectivesusers- User profiles and settings
womensHealth_cycle- Menstrual cycle trackingwomensHealth_reproductive- Contraception and fertility datawomensHealth_breast- Breast health and mammogram recordswomensHealth_gynecological- Pap smear and STI testingwomensHealth_hormonal- PCOS and thyroid health datawomensHealth_preventive- Well-woman exams and vaccinations
limbAssessments- Limb assessment dataprostheticCare- Prosthetic care trackingpainTracking- Pain tracking datacareReminders- Care-specific remindersdurableMedicalEquipment- DME tracking
meals- Meal tracking and nutrition datacholesterolEntries- Cholesterol monitoringweightEntries- Weight tracking dataweightGoals- Weight loss goalsweightLossPlans- AI-generated meal/exercise plansnutritionEntries- General nutrition tracking
physicalActivity- Exercise trackingsleepEntries- Sleep trackingmedicalHistory- Medical history recordsimmunizations- Immunization recordshealthMetrics- Health metrics datasettings- App settingsreminders- Reminder notificationsexports- Data exports
// Configure in the app settings
{
enabled: true,
bloodPressure: true,
medications: true,
mood: true,
goals: true,
reminderTime: "08:00"
}Run the test suite:
npm testRun tests with coverage:
npm run test:coverage- Lighthouse Score: 95+ across all categories
- First Contentful Paint: < 1.5s
- Largest Contentful Paint: < 2.5s
- Cumulative Layout Shift: < 0.1
- First Input Delay: < 100ms
- Data Encryption: All data encrypted in transit and at rest
- Authentication: Secure Firebase Authentication
- Authorization: User-based data access control
- HTTPS: Secure connections only
- CSP: Content Security Policy headers
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow the existing code style
- Write tests for new features
- Update documentation
- Ensure accessibility compliance
- Test on multiple devices
This project is licensed under the MIT License - see the LICENSE file for details.
# Deploy to Firebase (recommended)
./deploy-to-firebase.sh
# Sync files to public directory
./sync-to-public.sh
# Start local development server
python3 -m http.server 8000- Automatic Deployment: Push to
mainbranch triggers deployment - PR Previews: Pull requests create preview deployments
- Status Monitoring: Check deployment status in GitHub Actions tab
- Live Demo: https://bradley-health.web.app
- GitHub Issues: Report Issues
- Firebase Console: Monitor Deployment
- GitHub Actions: Deployment Status
- Firebase: Backend services and hosting
- Chart.js: Data visualization library
- MDN Web Docs: Web development resources
- PWA Builder: PWA optimization tools
- Advanced women's health analytics
- Pregnancy tracking features
- Menopause support tools
- Advanced cycle predictions with AI
- Wheelchair movement tracking
- Advanced analytics dashboard
- Integration with health devices
- Family member access
- AI-powered health insights
- Telemedicine integration
- Health insurance integration
- Multi-language support
- Wearable device integration
- Advanced goal tracking
- Social features
- Health challenges
Bradley Health - Empowering better health through technology.
Built with β€οΈ for better health outcomes
Note: This is a health monitoring application. Always consult with healthcare professionals for medical advice.