A complete health management platform built on Val Town with essential health tools and resources.
āāā backend/
ā āāā database/
ā ā āāā migrations.ts # Database schema
ā ā āāā queries.ts # Database operations
ā āāā routes/
ā ā āāā health.ts # Health tracking endpoints
ā ā āāā appointments.ts # Appointment management
ā ā āāā articles.ts # Health articles API
ā ā āāā static.ts # Static file serving
ā āāā index.ts # Main Hono server
āāā frontend/
ā āāā components/
ā ā āāā App.tsx # Main application
ā ā āāā Dashboard.tsx # Health dashboard
ā ā āāā BMICalculator.tsx
ā ā āāā HealthTracker.tsx
ā ā āāā AppointmentBooking.tsx
ā ā āāā HealthArticles.tsx
ā ā āāā HealthDictionary.tsx
ā ā āāā Chatbot.tsx
ā ā āāā [other components]
ā āāā index.html # Main HTML template
ā āāā index.tsx # Frontend entry point
ā āāā style.css # Custom styles
āāā shared/
āāā types.ts # Shared TypeScript types
āāā utils.ts # Shared utility functions
/backend/index.ts
/frontend/index.html
GET /
- Main applicationGET /api/health/*
- Health tracking endpointsGET /api/appointments/*
- Appointment managementGET /api/articles/*
- Health articles and dictionaryPOST /api/chatbot/*
- AI chatbot interactionsPOST /api/health/track
- Log health metricsPOST /api/appointments/book
- Book appointmentPOST /api/chatbot/message
- Send message to AI assistantOPENAI_API_KEY
- Required for AI chatbot functionality (automatically configured in Val Town)