API Client for AICookBook-Application
Three services
- Frontend:
- APIClient:
- Backend:
-
Backend
- Port = 8080 steps:
- DB create Schema:
- aicookbook_db
- DB Env variables
- DB_LOCALHOST = localhost
- DB_PORT = 3306
- DB_USERNAME = < your_db_username >
- DB_PASSWORD = < your_db_password >
-
Frontend
- run with:
npm install
npm run dev
- run with:
-
APIClient:
- Port = 8081
- Env variables
- Create .env file
add in .env:
API_KEY= <your-key>
- Create .env file
add in .env:
Objective:
- To create a proof-of-concept system that integrates AI-driven functionalities to enhance a cookbook application.
- The project emphasizes user-customized recipe recommendations and streamlined shopping list generation based on available ingredients and user preferences.
Core Functionality:
- Ingredients Management:
- Users log in, upload, or update their list of available ingredients.
- 'Choose' - Recipe Suggestions:
- The system suggests recipes using AI recommendations based on:
- user profile preferences
- and available ingredients.
- Recipes Categorization:
- “Best Use” (recipes using at least 50% of available ingredients)
- “Good Alternatives” (recipes using at least 25%).
- The system suggests recipes using AI recommendations based on:
- 'Shop' - Shopping List Generation:
- Once a recipe is chosen, the system generates a shopping list for missing ingredients.
- 'Cook' - Retrieve Recipe Instructions
- precondition:
- recipe chose + shopping done
- Instructions included in the initial Generation of Recipe, which is temp-saved
- System retrieves Recipe Instruction for easy Cooking of recipe.
- precondition:
User Workflow:
- Login: Access the application.
- Setup Ingredients: Users add or update their ingredient list.
- Intent Selection: Users choose an intent such as "Explore" (new recipes) or "Use Known" (based on familiar ingredients), and set or customize preferences.
- Recipe Exploration: Based on filters (e.g., vegetarian, work time), users receive tailored recipe recommendations.
- Recipe Details and Shopping List: Upon recipe selection, detailed instructions and an auto-generated shopping list are provided.
Clone the repository into the root of your folder:
git clone https://github.com/AlekOmOm/AICookBook.git .
set new remote
git remote remove origin
git remote add origin <new repo .git>
install dependencies and run
npm install
npm run dev