A daily habits tracking application built with Val Town, featuring habit management, daily check-ins, and progress visualization.
āāā backend/
ā āāā database/
ā ā āāā migrations.ts # Database schema setup
ā ā āāā queries.ts # Database query functions
ā āāā routes/
ā ā āāā habits.ts # Habit CRUD operations
ā ā āāā tracking.ts # Daily tracking operations
ā āāā index.ts # Main Hono server
āāā frontend/
ā āāā components/
ā ā āāā App.tsx # Main application component
ā ā āāā HabitList.tsx # Habits display and management
ā ā āāā HabitForm.tsx # Add/edit habit form
ā ā āāā DailyTracker.tsx # Daily check-in interface
ā āāā index.html # Main HTML template
ā āāā index.tsx # Frontend entry point
āāā shared/
āāā types.ts # Shared TypeScript types
GET /api/habits - Get all habitsPOST /api/habits - Create new habitPUT /api/habits/:id - Update habitDELETE /api/habits/:id - Delete habitGET /api/tracking/:date - Get tracking data for datePOST /api/tracking - Record habit completionDELETE /api/tracking - Remove habit completion