A ChatGPT clone full-stack website developed using the MERN stack. This project uses TypeScript for the frontend and integrates the OpenAI API to create a ChatGPT 3.5 clone.
- Chat Interface: Users can interact with the ChatGPT clone in a chat interface similar to the original ChatGPT.
- OpenAI API Integration: Utilizes the OpenAI API to generate responses and create a conversational experience.
- Material UI Styling: Styled using Material UI to provide a clean and modern user interface.
- React Hot Toast: Displays popup messages using React Hot Toast for user notifications.
-
Clone the repository:
git clone https://github.com/chandima2000/chatgpt-clone.git
-
Install dependencies:
cd chatgpt-clone npm install
-
Create a .env file in the root directory with your OpenAI API key:
OPENAI_API_KEY=your-api-key
-
Start the development server:
npm start
- Start by typing a message in the chat interface.
- The ChatGPT clone will generate a response based on the input using the OpenAI API.
- Interact with the ChatGPT clone as you would with a chatbot.
- Fork the repository.
- Create a new branch (git checkout -b feature/fooBar).
- Commit your changes (git commit -am 'Add some fooBar').
- Push to the branch (git push origin feature/fooBar).
- Create a new Pull Request.