Skip to content

Food Hero is a modern web application designed to combat food waste by enabling users to track their food orders and portions from previous restaurant visits

Notifications You must be signed in to change notification settings

jasonlow2307/foodhero

Repository files navigation

🍽️ Food Hero

Food Hero is a modern web application designed to combat food waste by enabling users to track their food orders and portions from previous restaurant visits. By recording and analyzing eating habits, users can make smarter ordering decisions, avoid excessive portions, and reduce personal food waste. The app features location tracking, meal history, portion satisfaction ratings, and social sharing functionality through user groups.

Food Hero Homepage Food Hero Homepage Stats

Features

  • 🔐 User authentication and profiles
  • 📝 Track orders from past visits
  • 🍔 Food listing management
  • 🔍 Search and filter past food items
  • 📍 Location-based matching
  • 🤔 What To Eat
  • 🔄 Sharing between users
  • 👥 Groups

Food Listings

Tech Stack

  • React 18
  • TypeScript
  • Vite
  • ESLint for code quality
  • Tailwind CSS for styling
  • Firebase for backend services

App Screenshots

Adding Restaurant

Add Place Add Place

Food Location Details

Location Details

Group Sharing

Group Sharing Group Sharing

What To Eat

What To Eat What To Eat

Dark & Light Modes

Theme Toggle Theme Toggle Theme Toggle

Getting Started

Prerequisites

  • Node.js (v16+)
  • npm or yarn

Environment Configuration

  1. Create a .env file in the root directory of your project:
touch .env
  1. Add your Firebase configuration to the .env file:
VITE_FIREBASE_API_KEY=your_api_key
VITE_FIREBASE_AUTH_DOMAIN=your_auth_domain
VITE_FIREBASE_PROJECT_ID=your_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_storage_bucket
VITE_FIREBASE_MESSAGING_SENDER_ID=your_messaging_sender_id
VITE_FIREBASE_APP_ID=your_app_id
  1. Get these values from your Firebase console:

  2. Go to Firebase Console

  • Select your project
  • Click on the gear icon (⚙️) near "Project Overview"
  • Select "Project settings"
  • Scroll down to "Your apps" section
  • Copy the configuration values

Installation

  1. Clone the repository
git clone https://github.com/yourusername/food-hero.git
cd food-hero
  1. Install dependencies
npm install
# or
yarn
  1. Start the development server
npm run dev
# or
yarn dev
  1. Open your browser at http://localhost:5173

Building for Production

npm run build
# or
yarn build

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Food Hero is a modern web application designed to combat food waste by enabling users to track their food orders and portions from previous restaurant visits

Topics

Resources

Stars

Watchers

Forks

Languages