Skip to content
ManojBaashaPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Repository files navigation

Khao: Maximizing Grocery Bills for University Students

Project Description

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.

Key Features & Benefits

  • 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.

Prerequisites & Dependencies

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.

Dependencies

The project utilizes the following dependencies:

  • Frontend (React):
    • react
    • react-dom
    • react-scripts
    • axios
    • openai
    • @google-cloud/vision
    • tesseract.js
    • @testing-library/jest-dom
    • @testing-library/react
    • @testing-library/user-event
    • web-vitals

Installation & Setup Instructions

  1. Clone the Repository:

    git clone https://github.com/rohanmalige/khao.git
    cd khao
    
  2. Install Frontend Dependencies:

    cd khao  # Navigate into the khao folder that contains package.json
    npm install
    
  3. 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 .env file (or use your operating system's method of setting environment variables) in the khao directory 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_KEY
    

    Note: Replace YOUR_GOOGLE_CLOUD_VISION_API_KEY and YOUR_OPENAI_API_KEY with your actual API keys. Never commit API keys to a public repository!

  4. Start the Development Server:

    npm start
    

    This will start the React development server, and the application should be accessible at http://localhost:3000.

Usage Examples

  • 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.

Configuration Options

  • API Keys: As mentioned above, the Google Cloud Vision API and OpenAI API require API keys, which can be configured as environment variables.

Contributing Guidelines

We welcome contributions to Khao! Please follow these guidelines:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and ensure they are well-tested.
  4. Submit a pull request with a clear description of your changes.

License Information

This project does not currently have a specific license specified. All rights are reserved by the owner.

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages