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
- 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
- React
- React Router
- Axios
- Tailwind CSS
- Vite
- Node.js
- Express.js
- MongoDB
- Mongoose
- JWT Authentication
- bcryptjs
- Groq API
- Llama 3.3 70B Versatile
ChefGPT/
│
├── frontend/
│ ├── src/
│ ├── public/
│ └── ...
│
├── backend/
│ ├── controllers/
│ ├── models/
│ ├── routes/
│ ├── middleware/
│ └── ...
│
└── README.mdgit clone https://github.com/your-username/chefGPT.git
cd chefGPTcd backend
npm install- Create a project in Google Cloud Console.
- Enable the Google Identity Services API.
- Create OAuth 2.0 credentials.
- Add authorized origins and redirect URIs.
- 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_idStart backend:
npm run devcd frontend
npm installCreate a .env file:
VITE_API_URL=http://localhost:5000/api
VITE_GOOGLE_CLIENT_ID=your_google_client_idStart frontend:
npm run devChefGPT supports both JWT Authentication and Google OAuth 2.0 Authentication.
Users can register and log in using their email address and password. Passwords are securely hashed using bcryptjs before being stored in the database.
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.
- 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.
- Recipe Images
- User Profiles
- Recipe Categories
- Advanced Filters
- Rate Limiting
- AI Image Generation
Hariharasudhan D
This project is licensed under the MIT License.




