GreenSnack is a food and meal planner app developed during a 24-hour Hackathon focused on Green Cities and raising environmental awareness. The app creates personalized meal plans using user-specific data to minimize CO2 emissions and food waste, helping users make sustainable and cost-effective food choices.
Generate a meal plan tailored to your personal parameters:
- Age
- Height
- Weight
- Weekly Budget
Leverages data on food items that produce the least CO2 emissions, providing you with meals that have a lower carbon footprint.
Uses the OpenAI API to generate creative and personalized recipes that align with the user's sustainability goals.
Automatically generates a grocery list based on your meal plan, reducing impulsive buying and food waste.
Access personalized statistics and graphs on:
- CO2 Savings: The amount of CO2 saved per kg by following the meal plan.
- Food Waste Reduction: Track how much food waste is reduced in kilograms.
- Money Savings: Visualize your financial savings from planning ahead.
https://drive.google.com/file/d/1ucvPvDqEjRPl0i3D7g9A084iroOQOwPq/view?usp=sharing
GreenSnack was built during a Hackathon centered around the theme of Green Cities and environmental awareness. The goal is to help individuals make conscious food choices that have a positive impact on the planet by promoting low carbon footprint meals and reducing food waste.
Make sure you have the following installed:
- Android Studio (latest version)
- Kotlin (version used in the project)
- OpenAI API Key (for recipe generation)
-
Clone the repository:
git clone https://github.com/your-username/GreenSnack.git cd GreenSnack -
Open in Android Studio:
- Launch Android Studio.
- Click on
File > Openand select the project directory. - Sync the project with Gradle files.
-
Configure OpenAI API Key:
- Add your OpenAI API key in the appropriate file (e.g.,
secrets.properties, an.envfile or directly to theHomefragment) to enable recipe generation.
- Add your OpenAI API key in the appropriate file (e.g.,
-
Run the app:
- Connect your Android device or start an emulator.
- Click the Run button in Android Studio.
- Input Personal Data: Users provide their age, height, weight, and weekly budget.
- Generate Meal Plan: GreenSnack uses the OpenAI API to create a personalized meal plan based on your inputs and food items with low CO2 emissions.
- Grocery List Creation: The app generates a grocery list to streamline shopping and reduce impulsive purchases.
- Track Savings: Users can view detailed stats and graphs on CO2 savings, food waste reduction, and financial benefits.
- Platform: Android
- Language: Kotlin
- API: OpenAI API (for recipe generation)
- Graphical Data: MPAndroidChart v3.1.0
This project is licensed under the MIT License - see the LICENSE file for details.