Skip to content

Feature/external api - #8

Merged
mareh-aboghanem merged 3 commits into
mainfrom
feature/external-api
Apr 15, 2026
Merged

mareh-aboghanem merged 3 commits into
mainfrom
feature/external-api

Conversation

@shmoonwalker

Copy link
Copy Markdown
Collaborator

No description provided.

- Added dotenv as a dependency to manage environment variables.
- Implemented functions to interact with the USDA Food Data Central API in external-api.js, including error handling for missing API keys and response validation.
- Commented out the userCommands import in index.js for clarity.
- Added a new function to calculate nutrition based on food name and amount.
- Integrated external API calls to fetch nutrition data.
- Updated the addMeal function to include calculated nutrition in the meal object.
- Removed duplicate dotenv dependency from package-lock.json.
@mareh-aboghanem
mareh-aboghanem merged commit cf61fbc into main Apr 15, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants