This is a simple vite app that provides nutritional information for common foods.
You can enter any food (for e.g.: "1 egg" or "For dinner I had steak with mash potatoes and peas") and get its nutritional facts such as calories, carbs, protein, and fats.
This app integrates the Nutritionix Track API to get detailed nutrient breakdown.
For more information on this API, follow this link: https://developer.nutritionix.com/docs/v2
If you want to play around with this project:
- get a free account https://www.nutritionix.com/business/api to get your API keys
- use these keys in every API call you make, see /src/api/api.js
Then clone this repo, open it in VS code, and run:
npm install
npm run dev