Khao is a web application designed to assist university students in optimizing their grocery spending. By leveraging technologies like OCR and AI, Khao helps users identify the best deals, plan nutritious meals, and make informed purchasing decisions, ultimately saving money and reducing food waste.
- Receipt Scanning & Itemization: Uses OCR to automatically extract item information from grocery receipts, saving time and effort.
- Price Comparison: Compares prices across different stores to identify the most cost-effective options.
- Meal Planning: Suggests meal plans based on dietary preferences, budget constraints, and available ingredients.
- Nutritional Analysis: Provides nutritional information for selected meals and ingredients.
- Budget Tracking: Helps users track their grocery spending and identify areas for improvement.
Before you begin, ensure you have the following installed:
- Node.js: Required for running the React frontend. Download the latest LTS version from nodejs.org.
- npm (Node Package Manager): Typically installed with Node.js.
- Python: Required for backend processes (if applicable beyond React's usage of Javascript related tools). Ensure Python 3.6 or higher is installed.
- React: JavaScript library for building user interfaces.
- Necessary API Keys: Google Cloud Vision API Key and OpenAI API Key, if you plan to use those features.
The project utilizes the following dependencies:
- Frontend (React):
reactreact-domreact-scriptsaxiosopenai@google-cloud/visiontesseract.js@testing-library/jest-dom@testing-library/react@testing-library/user-eventweb-vitals
-
Clone the Repository:
git clone https://github.com/rohanmalige/khao.git cd khao -
Install Frontend Dependencies:
cd khao # Navigate into the khao folder that contains package.json npm install -
Configure Environment Variables:
If you plan to use the Google Cloud Vision API or OpenAI API, you will need to configure your API keys. This is typically done through environment variables. Create a
.envfile (or use your operating system's method of setting environment variables) in thekhaodirectory and add the following:REACT_APP_GOOGLE_CLOUD_VISION_API_KEY=YOUR_GOOGLE_CLOUD_VISION_API_KEY REACT_APP_OPENAI_API_KEY=YOUR_OPENAI_API_KEYNote: Replace
YOUR_GOOGLE_CLOUD_VISION_API_KEYandYOUR_OPENAI_API_KEYwith your actual API keys. Never commit API keys to a public repository! -
Start the Development Server:
npm startThis will start the React development server, and the application should be accessible at
http://localhost:3000.
- Scanning a Receipt: Upload a clear image of a grocery receipt. The application will attempt to extract the item names and prices.
- Generating Meal Plans: Select your dietary preferences (e.g., vegetarian, vegan, gluten-free) and budget. The application will suggest meal plans that meet your criteria.
- API Keys: As mentioned above, the Google Cloud Vision API and OpenAI API require API keys, which can be configured as environment variables.
We welcome contributions to Khao! Please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and ensure they are well-tested.
- Submit a pull request with a clear description of your changes.
This project does not currently have a specific license specified. All rights are reserved by the owner.
- This project utilizes Create React App.
- We thank Google Cloud Vision API and OpenAI for providing powerful APIs.