A web application that allows users to interact with OpenAI's GPT-3 language model through a simple and user-friendly interface.
A web application that allows users to interact with OpenAI's GPT-3 language model through a simple and user-friendly interface. This app is for demo purpose to test OpenAI API and may contain issues/bugs.
If you are looking for a simple HTML/vanilla JavaScript version, check here
This guide will help you set up the repository on your local machine. Please follow these steps carefully to ensure a smooth setup process.
Use the following command to clone the repository:
git clone https://github.com/ioanmo226/chatgpt-web-application
cd server # Navigate to the server directory:
npm install #install the backend dependencies
OPENAI_API_KEY=YOUR_OPENAI_API_KEY
node index.js
cd client
npm install
REACT_APP_BACKEND_URL
in the .env
file to the URL of your backend server. For local development, use the following URL:REACT_APP_BACKEND_URL=http://localhost:3001/
npm start
If you wish to host both the backend and frontend on the same port/URL, follow these steps:
client
directory:npm run build
Copy the build
directory to the server
directory and rename it to frontend
.
Start the backend server using the instructions in the "Backend Setup" section.
Once the setup process is complete, the frontend will be accessible at the URL of your backend server.
This project welcomes contributions and suggestions for improvements. If you have any ideas, please feel free to open an issue or create a pull request.
Thank you for your consideration.