Skip to content

agworkgit/chef-claude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chef Claude

Chef Claude is a web application that generates recipes based on user-provided ingredients. It consists of a React frontend deployed on Vercel and a Node.js/Express backend API deployed on Render. The backend uses the OpenAI API to generate recipes dynamically.

Screenshot

Homepage Screenshot

Project Structure

chef-claude/
├─ frontend/ # React frontend
│ ├─ package.json
│ └─ src/
│
├─ server/ # Node/Express backend API
│ ├─ package.json
│ └─ server.js
│
├─ package.json # optional root package.json
├─ README.md

Frontend

  • Framework: React

  • Deployment: Vercel (https://chef-claude-lyart.vercel.app)

  • Features:

    • Users can input a list of ingredients.
    • Fetches recipes from the backend API.
    • Displays recipes in markdown using react-markdown.
  • Environment Variable:

    • REACT_APP_API_BASE=https://chef-claude-f34x.onrender.com

Backend API

  • Framework: Node.js + Express
  • Deployment: Render (https://chef-claude-f34x.onrender.com)
  • Features:
    • POST /api/getRecipe endpoint.
    • Accepts JSON body: { "ingredients": ["eggs", "flour", "milk"] }.
    • Generates recipes using OpenAI GPT-3.5-turbo.
    • Handles CORS for the React frontend.

Deployment

Frontend:

  • Vercel:
    • GitHub repo: chef-claude/frontend

Backend:

  • Render:
    • Root Directory: server
    • Build Command: npm install
    • Start Command: npm start
    • Environment Variable: OPENAI_API_KEY

Summary of Accomplishments

  • Migrated API from Vercel serverless function → dedicated Express server.

  • Configured CORS properly for React frontend.

  • Backend deployed on Render, fully live and accessible.

  • Frontend deployed on Vercel, fetching recipes from Render API.

  • Local development environment set up with npm run dev for server and npm start for frontend.

  • Eliminated serverless deployment errors completely.

Next Steps / Improvements

  • Add recipe images using OpenAI image API.

  • Cache generated recipes to reduce API calls.

  • Add user accounts and save favorite recipes.

  • Add input validation and better UI for ingredient selection.

Live Sites:

Author

Alex Grigore BSc Computer Science Student | Front-End Developer

MIT License

Copyright (c) 2025 Alex Grigore

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Chef Claude is a web application that generates recipes based on user-provided ingredients.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published