This is a simple web application that generates a weekly meal plan based on user input. The user provides information such as age, weight, height, gender, activity level, number of meals per day, diet preference, and any health specifications. The application then calculates the user's Basal Metabolic Rate (BMR) and uses it to determine the daily calorie intake, taking into account the activity level.
-
Input Personal Information:
- Age: Enter your age.
- Weight: Input your weight in kilograms.
- Height: Enter your height in centimeters.
- Gender: Select your gender (male/female).
- Activity Level: Choose your activity level from the provided options.
- Number of Meals: Specify how many meals you'd like per day.
- Diet Preference: Choose your diet preference (e.g., vegetarian, vegan, etc.).
- Health Specifications: Provide any health specifications you have.
-
Generate Meal Plan:
- Click the "Generate Meal Plan" button to initiate the meal plan generation process.
-
View Meal Plan:
- The generated meal plan will be displayed in a table format, organized by days of the week.
- Each cell in the table contains meal information, including the meal name, image, and a link to view the recipe.
The application utilizes the Edamam API to fetch meal data based on the user's preferences. It calculates the required calorie intake and queries the API to retrieve a set number of meals for the week. The meal plan is then displayed in a user-friendly table.
- Edamam API - The application uses this API to fetch recipe data.
To run the application locally, follow these steps:
- Clone the repository to your local machine.
- Open the
index.html
file in a web browser. - Fill out the meal form and click the "Generate Meal Plan" button.
- The application is a basic example and may require additional features and improvements for production use.
- Ensure that your internet connection is active for proper API data retrieval.