ChatGPT Clone is a web-based chatbot application that utilizes OpenAI's GPT language model to provide answers to user questions and queries. The conversations are saved in a MongoDB database for analysis and improvement of the chatbot's accuracy. This repository contains the source code for the application.
The following technologies have been used in the development of ChatGPT Clone:
- Node.js with Express for the backend
- MongoDB for the database
- React with Formik and RTK Query for the front-end
- OpenAI GPT language model for the chatbot
Before running the ChatGPT Clone application, ensure that the following are installed:
- Node.js and NPM
- MongoDB
- A modern web browser
- An OpenAI API key for using the GPT language model
- Clone the repository:
- Navigate to the project directory:
- Install the dependencies:
- Create a
.env
file in the root directory of the project and add the following variables:
To run this project, you will need to add the following environment variables to your .env file
REACT_APP_API_URI = https://chat-gpt-2-0-mmqe.onrender.com
-
Start the server:
-
Open the application in your browser by navigating to
http://localhost:3000/
.
- Register for a new account.
- Log in to your account using your email address and password.
- Use the chatbot to search for information and see your conversation history.
- Log out of your account when you're done using the application.
If you'd like to contribute to the project, please follow the existing code style and formatting conventions, and submit a pull request.
This project is licensed under the MIT License - see the LICENSE
file for details.