FoodFinder is a versatile mobile application designed to help users manage their pantry, explore recipes, and maintain a shopping list. The app integrates with the Spoonacular API to fetch recipe recommendations based on the ingredients you have and supports allergy alerts, voice recognition, and intuitive navigation.
- Android Studio (latest version recommended)
- An Android device or emulator
- A valid API key from Spoonacular
- Clone this repository:
git clone https://github.com/yourusername/foodfinder.git
- Open the project in Android Studio.
- Add your Spoonacular API credentials:
- Open gradle.properties and add:
API_KEY=your_api_key API_HOST=spoonacular-recipe-food-nutrition-v1.p.rapidapi.com
- Build and run the app on your device or emulator.
- Add Items to Pantry
- Tap the "Add" button after entering the desired item in the input field to include it in your pantry.
- Tap the microphone icon to use voice input for adding items.
- Example: Say "Add milk and eggs" to automatically include these items in your pantry list.
- Tap the "Search Parameters" button to configure your recipe search preferences:
- Specify the number of recipes.
- Enable or disable options like "Ignore Pantry" and "Maximize Ingredients."
- After setting preferences, browse through recipes tailored to your pantry and preferences. Each recipe displays:
- Step-by-step instructions.
- Nutrition information.
- Allergy alerts for detected allergens.
- Manage your stored items directly from the Pantry section. Add, edit, or delete items with ease.
- Tap the "Home" button to return to the main screen, where you can access all primary features.
- Maintain a dedicated Shopping List for items not in your pantry. Switch between features effortlessly using navigation buttons.
- Double-tap or click the heart icon on a recipe card to mark it as a favorite.
- View all saved recipes in the Favorites section. Recipes are stored with detailed information for quick access.
- Send Recipes to Friends:
- Share recipes directly via supported apps. Tap the "Share" button in a recipe detail view to send the recipe to your friends.
- Get Grocery Notifications:
- Receive notifications when you're near a grocery store, reminding you to buy items from your shopping list. (Note: Grocery store locations are hardcoded.)
- Track Allergens:
- View detailed allergy alerts for recipes. Add or remove allergens in your preferences to refine results further.
- Persistent Storage:
- Pantry and Shopping List items are saved locally, ensuring data is preserved across app sessions.
- Explore Nutrition:
- Tap on recipes to explore detailed nutrition facts, helping you plan meals effectively.
- Use the remove button in the Pantry view to delete unwanted items.
- Use Maximize Ingredients to prioritize recipes that utilize more pantry items.
- Use the Shopping List for items you need, separate from your pantry inventory
- Languages: Kotlin
- Frameworks: Android SDK
- API Integration: Spoonacular API
- Data Storage: Local file storage using Android's filesDir
- UI Framework: ConstraintLayout, ListView, and Custom Adapters