First of all, I want to say that this is my first “big” project that I have been working on alone. I have learned many things about APIs, new libraries, and new ways to make my code more compact. I am proud of my work and I know that in a year I will look back at this project and laugh at silly mistakes, bad practices, and more.
Kitxen is a web platform that allows users to access a wide variety of culinary recipes from around the world, using the Spoonacular API to obtain detailed information about ingredients, preparation, and nutrition. The page is designed to be intuitive and user-friendly, making it an ideal tool for both novice and experienced cooks.
To deploy this project visit the page
To run this project, you will need to add the following environment variables to your .env file
VITE_REACT_APP_MY_API_KEY
Spoonacular is a powerful recipe and food API that provides detailed information about ingredients, recipes, grocery products, and menu items. Their knowledge engineers have spent years crafting a complex food ontology that allows them to understand the relationships between ingredients, recipes, nutrition, allergens, and more.
The API provides a wide range of features such as recipe analysis, meal planning, shoppable recipes, special diets/intolerances, nutritional information, and more. It is used by hundreds of universities, schools, companies, and hackathons all around the world.
getRecipesInfo(recipeId): This function takes arecipeIdas an argument and returns detailed information about the recipe with the specified ID by making a GET request to the Spoonacular API's/recipes/{id}/informationendpoint.
GET /recipes/{id}/informationgetRecipesInfoByIngredient(ingredient): This function takes aningredientas an argument and returns a list of recipes that contain the specified ingredient by making a GET request to the Spoonacular API's/recipes/findByIngredientsendpoint.
GET /recipes/findByIngredientsgetIngredientsInfo(ingredientId): This function takes aningredientIdas an argument and returns detailed information about the ingredient with the specified ID by making a GET request to the Spoonacular API's/food/ingredients/{id}/informationendpoint.
GET /food/ingredients/{id}/informationgetRecipesInfoRandom(quantity, tags = ''): This function takes aquantityand an optionaltagsargument and returns a list of random recipes by making a GET request to the Spoonacular API's/recipes/randomendpoint. If notagsare provided, a random diet is chosen using thechooseRandomDiet()function.
GET /recipes/randomgetQueryResultsRecipes(query): This function takes aqueryas an argument and returns a list of recipes that match the specified query by making a GET request to the Spoonacular API's/recipes/complexSearchendpoint.
GET /recipes/complexSearchgetQueryResultsIngredients(query): This function takes aqueryas an argument and returns a list of ingredients that match the specified query by making a GET request to the Spoonacular API's/food/ingredients/searchendpoint.
GET /food/ingredients/searchIf you have any feedback, please send me your suggestion to landersolaaguirre@gmail.com

