Skip to content

hari2k7/ChefGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChefGPT

ChefGPT is an AI-powered recipe generator that helps users create delicious recipes instantly. Simply describe what you want to cook, and ChefGPT generates a detailed recipe with ingredients, instructions, cooking time, cuisine type, and more.

Youtube demo: https://youtu.be/akd4I7Himyg?si=UUMeBUFlVKbVnsOD

Features

  • AI-powered recipe generation using Groq LLM
  • JWT Authentication
  • Google OAuth Authentication
  • User Registration & Login
  • Personal Cookbook
  • Favorite Recipes
  • Delete Recipes
  • Search Recipes
  • Share Recipes via WhatsApp
  • Detailed Recipe View
  • Protected Routes
  • MongoDB Database Storage

Tech Stack

Frontend

  • React
  • React Router
  • Axios
  • Tailwind CSS
  • Vite

Backend

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • JWT Authentication
  • bcryptjs

AI

  • Groq API
  • Llama 3.3 70B Versatile

Project Structure

ChefGPT/
│
├── frontend/
│   ├── src/
│   ├── public/
│   └── ...
│
├── backend/
│   ├── controllers/
│   ├── models/
│   ├── routes/
│   ├── middleware/
│   └── ...
│
└── README.md

Installation

Clone Repository

git clone https://github.com/your-username/chefGPT.git
cd chefGPT

Backend Setup

cd backend
npm install

Configure Google Cloud Console

  1. Create a project in Google Cloud Console.
  2. Enable the Google Identity Services API.
  3. Create OAuth 2.0 credentials.
  4. Add authorized origins and redirect URIs.
  5. Copy the Client ID and Client Secret into your .env file.

Create a .env file:

PORT=5000
MONGO_URI=your_mongodb_connection_string
GROQ_API_KEY=your_groq_api_key
JWT_SECRET=your_jwt_secret
GOOGLE_CLIENT_ID=your_google_client_id

Start backend:

npm run dev

Frontend Setup

cd frontend
npm install

Create a .env file:

VITE_API_URL=http://localhost:5000/api
VITE_GOOGLE_CLIENT_ID=your_google_client_id

Start frontend:

npm run dev

Authentication

ChefGPT supports both JWT Authentication and Google OAuth 2.0 Authentication.

Authentication Methods

Email & Password Login

Users can register and log in using their email address and password. Passwords are securely hashed using bcryptjs before being stored in the database.

Google Sign-In

Users can also sign in securely using their Google account through OAuth 2.0. Upon successful authentication, a JWT token is generated and used to access protected routes.

Protected Features

  • Generate Recipes
  • View Cookbook
  • Favorite Recipes
  • Delete Recipes
  • View Recipe Details

Users must authenticate using either Email/Password Login or Google Sign-In before accessing these features.


Screenshots

Login Page

login image

Register Page

register image

Home Page

home page image

Cookbook Page

cookbook image

Recipe Detail Page

register image


Future Improvements

  • Recipe Images
  • User Profiles
  • Recipe Categories
  • Advanced Filters
  • Rate Limiting
  • AI Image Generation

Author

Hariharasudhan D


License

This project is licensed under the MIT License.

About

AI-powered recipe generator that helps users create delicious recipes instantly

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages