MealplanApp
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
index.ts
https://kiboimichelle--221c4c3a3faa11f093b476b3cceeab13.web.val.run
A comprehensive meal planning tool designed for busy professionals to generate personalized meal plans based on dietary preferences and fitness goals.
- Personalized Meal Planning: Generate weekly meal plans based on dietary preferences
- Fitness Goal Integration: Adjust calorie and macro targets based on fitness objectives
- Dietary Restrictions: Support for various diets (vegetarian, vegan, keto, paleo, etc.)
- Time-Conscious: Meal suggestions optimized for busy schedules
- Nutritional Tracking: Automatic calorie and macronutrient calculations
- Shopping Lists: Generate grocery lists from meal plans
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database query functions
β βββ routes/
β β βββ meals.ts # Meal-related API endpoints
β β βββ plans.ts # Meal plan generation endpoints
β β βββ static.ts # Static file serving
β βββ index.ts # Main Hono server
βββ frontend/
β βββ components/
β β βββ App.tsx # Main application component
β β βββ MealPlanForm.tsx # Meal plan configuration form
β β βββ MealPlanView.tsx # Display generated meal plans
β β βββ NutritionCard.tsx # Nutrition information display
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
β βββ style.css # Custom styles
βββ shared/
β βββ types.ts # Shared TypeScript interfaces
β βββ utils.ts # Shared utility functions
βββ README.md
- Set your dietary preferences and restrictions
- Define your fitness goals (weight loss, maintenance, muscle gain)
- Specify your activity level and time constraints
- Generate a personalized weekly meal plan
- View nutritional breakdown and shopping list
- Backend: Hono (TypeScript API framework)
- Frontend: React with TypeScript
- Database: SQLite for user preferences and meal data
- Styling: TailwindCSS
- AI: OpenAI for intelligent meal suggestions