This project is a full-stack web application that integrates AI-powered features using a React frontend and a Spring Boot backend. The application offers three main functionalities:
- AI Chat - Users can interact with an AI-powered chatbot.
- Image Generation - Users can generate images based on text prompts.
- Recipe Generator - Users can generate recipes based on ingredients, cuisine type, and dietary restrictions.
- Users enter a question or prompt.
- The AI provides a textual response.
- Responses are displayed dynamically on the UI.
- Users enter a prompt to generate an image.
- The backend processes the request and returns an image URL.
- The generated images are displayed in a grid format.
- Users enter ingredients, cuisine preferences, and dietary restrictions.
- The AI generates a recipe based on the input.
- The generated recipe is displayed in text format.
- React - For building the user interface.
- CSS - For styling.
- Spring Boot - For handling API requests and processing AI responses.
- Node.js installed
- Java 17 or later installed
- Clone the repository:
git clone https://github.com/your-repo-link.git cd backend
- Build and run the Spring Boot application:
mvn spring-boot:run
- The backend runs on
http://localhost:8080
.
- Navigate to the frontend directory:
cd frontend
- Install dependencies:
npm install
- Start the React application:
npm start
- The frontend runs on
http://localhost:5173
.
- Endpoint:
GET /ask-ai?prompt={question}
- Response: AI-generated text response.
- Endpoint:
GET /generate-images?prompt={text}
- Response: List of image URLs.
- Endpoint:
GET /recipe-creator?ingredients={ingredients}&cuisine={cuisine}&dietaryRestrictions={restrictions}
- Response: AI-generated recipe in text format.
Feel free to contribute by creating issues, fixing bugs, or suggesting new features.