Skip to content

dery168/Cookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cookup

Simple web app where users provide one or more ingredients, get Gemini recipe suggestions, and continue chatting in the same conversation.

Tech Stack

  • Frontend: plain HTML/CSS/JS
  • Backend: Flask
  • AI: Google Gemini API
  • Persistence: SQLite

Setup

  1. Create a virtual environment and activate it.

  2. Install dependencies:

    pip install -r requirements.txt
  3. Copy .env.example to .env and set your key:

    • GEMINI_API_KEY=...
    • Optional: GEMINI_MODEL=gemini-1.5-flash
  4. Run:

    python app.py
  5. Open http://localhost:5000

API

  • POST /api/recipe/start
    • Body: { "ingredients": "egg, tomato, onion" }
  • POST /api/chat/message
    • Body: { "conversation_id": 1, "message": "Can I make it spicy?" }

Notes

  • Chat history is stored in instance/chat.db.
  • Procfile is included for PaaS deploys.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors