Welcome to Chat-GPT-Clone, a Multi-Functional MERN project powered by OpenAI API!
Chat-GPT-Clone is a versatile application that incorporates various AI-driven functionalities such as text summarization, paragraph generation, chatbot interactions, JavaScript code conversion, and sci-fi image generation. This project serves as an excellent showcase of the capabilities of the OpenAI API.
The project follows the following folder structure:
backend/
// Backend server implementationclient/
// Frontend client implementation
The backend/
folder contains the server-side implementation, built with Node.js and Express.js. It handles API requests, interacts with the OpenAI API, and communicates with the database. The client/
folder contains the client-side implementation, built with React.js. It provides the user interface for interacting with the various functionalities of the application.
Before running the application, make sure you have the following prerequisites installed on your system:
- Node.js
- MongoDB
- Clone the repository:
git clone <github_repo_url>
- Navigate to the project root directory:
cd Chat-Gpt-Clone
- Install dependencies for both the backend and client:
cd backend
npm install
cd ../client
npm install
To configure the application, create a .env
file in the backend/
directory and add the following environment variables: