A modern telehealth platform for medical weight loss programs, featuring a public marketing site and authenticated member portal.
- π₯ Member Portal - Dashboard, progress tracking, lab results, medications, and appointments
- π Interactive Tools - BMI calculator, pricing estimator, program comparison
- π¨ββοΈ Provider Directory - Browse and schedule appointments with healthcare providers
- π Resource Library - Educational content about weight loss and wellness
- π Authentication - Secure login with protected routes
- π± Responsive Design - Works seamlessly on mobile, tablet, and desktop
- Node.js 18+
- Bun or npm
git clone https://github.com/niksbanna/wellness.git
cd wellness
bun installbun run devbun run build
bun run preview- Frontend: React 18, TypeScript, Vite
- UI: Shadcn UI, Tailwind CSS, Radix UI
- Forms: React Hook Form, Zod
- Data: TanStack Query
- Charts: Recharts
- Icons: Lucide React
src/
βββ components/ # React components
β βββ ui/ # Shadcn UI components
β βββ ... # Feature components
βββ contexts/ # React contexts (Auth)
βββ hooks/ # Custom hooks
βββ lib/ # Utilities and data
βββ pages/ # Route pages
βββ types/ # TypeScript types
βββ App.tsx # Main app with routing
Public: /, /login, /providers, /resources, /program-comparison, /pricing-calculator
Member Portal (protected): /dashboard, /progress, /labs, /medications, /appointments
- Frontend: React 18, TypeScript, Vite
- UI: Shadcn UI, Tailwind CSS, Radix UI
- Forms: React Hook Form, Zod
- Data: TanStack Query
- Charts: Recharts
- Icons: Lucide React
- Wellness Theme - Custom color scale (50-950) for brand consistency
- Semantic Colors - Primary, secondary, destructive, muted, accent
- State Colors - Success, warning, error states
- Glassmorphism - Backdrop blur effects and glass shadows
- Font Display - SF Pro Display (Apple's system font)
- Font Sans - Inter as fallback
- Responsive Sizing - Fluid typography with mobile-first approach
Custom keyframe animations:
fade-in,fade-up,fade-down- Entry animationsfloat- Floating elementspulse-gentle- Subtle pulsingblur-in- Blur to focus transitionsaccordion-down,accordion-up- Accordion animations
50+ pre-built Shadcn UI components including:
- Forms (Input, Select, Checkbox, Radio, Textarea, etc.)
- Overlays (Dialog, Sheet, Drawer, Popover, Tooltip)
- Data Display (Card, Table, Badge, Avatar, Progress)
- Navigation (Tabs, Breadcrumb, Pagination, Menubar)
- Feedback (Toast, Alert, Alert Dialog)
- Mobile-First - Optimized for mobile devices
- Breakpoints - sm (640px), md (768px), lg (1024px), xl (1280px), 2xl (1400px)
- Touch Optimized - Large tap targets and swipe gestures
- Adaptive Layouts - Different layouts for mobile, tablet, and desktop
- Responsive Charts - Data visualizations adapt to screen size
Basic Program ($99/month + $149 consultation)
- Essential medical supervision
- Monthly check-ins
- Basic nutrition guidance
- Email support
Standard Program ($199/month + $149 consultation) - Most Popular
- Bi-weekly check-ins
- Monthly dietitian consultation
- Personalized meal plans
- Priority support
- Group sessions
Premium Program ($349/month, consultation waived)
- Weekly check-ins
- Bi-weekly dietitian consultations
- Monthly mental health counseling
- Dedicated care coordinator
- 24/7 priority support
- Lab work included
- BMI calculation and eligibility check
- Insurance coverage estimation
- Medication cost breakdown (Semaglutide, Tirzepatide, Liraglutide)
- Duration-based savings (6-month and 12-month commitments)
- Real-time cost estimation
- Searchable provider database
- Specialty filtering (Endocrinology, Bariatrics, etc.)
- Location-based search
- Provider ratings and reviews
- Detailed provider profiles with credentials
- Availability calendar
- Insurance verification
Categories:
- Weight Loss Medications (GLP-1, Semaglutide, Tirzepatide)
- Nutrition & Diet
- Exercise & Fitness
- Mental Health & Mindfulness
- Medical Information
- Wellness & Lifestyle
- User enters credentials on
/login - AuthContext validates and creates session
- User data stored in localStorage
- ProtectedRoute HOC guards member portal routes
- Automatic redirect to dashboard on success
- TanStack Query for server state
- Automatic caching and refetching
- Optimistic updates for better UX
- Error handling and retry logic
- React Hook Form for form state
- Zod schemas for validation
- Field-level validation
- Custom error messages
- Accessible form components
- Marketing website
- Component library setup
- Responsive design
- Basic routing
- Authentication system
- Dashboard with analytics
- Progress tracking
- Lab results viewer
- Medication management
- Appointment scheduling
- Real authentication API
- Database integration
- Payment processing
- Video consultation integration
- Electronic health records (EHR) integration
- Prescription management system
- Real-time chat with care team
- Mobile app (React Native)
- Wearable device integration
- Advanced analytics and reporting
- AI-powered insights
- Telemedicine video calls
- Document upload and management
- Billing and insurance claims
- Component testing with React Testing Library
- Hook testing
- Utility function tests
- Form validation tests
- User flow testing
- API integration testing
- Authentication flow testing
- Form submission testing
- Playwright for end-to-end testing
- Critical user journeys
- Cross-browser testing
- Mobile responsive testing
- Client-side session management
- Protected routes
- Form validation
- XSS prevention through React
- JWT token authentication
- HTTPS only
- HIPAA compliance measures
- Data encryption at rest and in transit
- Secure API endpoints
- Rate limiting
- CSRF protection
- Content Security Policy
- Regular security audits
- Penetration testing
- PHI (Protected Health Information) handling
- Vite for fast development builds
- Code splitting with React Router
- Lazy loading components
- Optimized images
- Tailwind CSS purging
- Tree shaking
- Image optimization with WebP
- CDN for static assets
- Service workers for offline support
- Bundle size analysis
- Performance monitoring
- Lighthouse score optimization
Contributions welcome! Please read CONTRIBUTING.md and CODE_OF_CONDUCT.md.
- Fork the repo
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT License - see LICENSE file.
- Shadcn UI - Component library
- Vite - Build tool
- Radix UI - Accessible primitives
- Tailwind CSS - CSS framework
Built with β€οΈ for better health outcomes β’ niksbanna