Skip to content

sophie900/picChef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

picChef

About the Project

From camera to kitchen 🧑‍🍳

Calling all foodies!

Imagine this: you're doomscrolling social media and stumble across a scrumptious dish. Eager to try your hand at recreating it, you're disappointed to find that you have no idea what the dish is! If only there were a tool to help bring recipes to life, from camera to kitchen...

That's where picChef comes in. Simply upload an image of a dish and picChef will generate a detailed recipe.

Built With 💻

Frontend

  • React frontend for modularity, with Typescript for type safety
  • Tailwind for modern, responsive styling
  • Motion library for seamless UI animations

Backend

  • FastAPI and Python for the backend
  • Supabase for recipe storage & user authentication
  • Gemini for image recognition
  • BeautifulSoup library for recipe scraping

Features ✨

  • Upload image from file picker
  • Image preview before upload
  • Gemini AI image identification
  • Search results page with recipes scraped from allrecipes.com
  • Saved recipes page
  • Email authentication

Coming Soon

  • Upload image via URL
  • Dark/light theme switcher
  • Custom notes for recipes
  • Filter saved recipes by condition

Getting Started

Prerequisites

  • Python 3.8+
  • Node.js
  • npm

Running the Application

  1. Clone the repository:
git clone https://github.com/sophie900/picChef.git && npm install
  1. Create virtual environment and install Python packages:
  • Navigate to backend directory:
    cd backend

  • Create a virtual environment:
    python -m venv venv

  • Activate virtual environment:
    source venv/bin/activate on macOS/Linux
    .\venv\Scripts\activate on Windows

  • Install requirements:
    pip install -r requirements.txt

  1. Get a Gemini API key here, then store it as an environment variable
cd backend
echo "GEMINI_API_KEY=YOUR_API_KEY_HERE" >> .env
  1. While in the backend folder, run the server
fastapi dev main.py
  1. Navigate to backend folder and run server
cd frontend
npm run dev
  1. The application should be running at http://localhost:5173/.

  2. Happy cooking!

About

From camera to kitchen.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published