The ChatGPT clone uses Fullmetal and express.js to run a server requesting client-side requests.
Clone the repository to your local machine, then create the .env file in the root directory of the project and create the FULLMETAL_API_KEY variable in it, and pass your private FULLMETAL key from your account at https://app.fullmetal.ai/
Install dependencies.
npm iStart frontend server with vite.
npm run dev:frontendStart backend server with nodemon.
npm run dev:backendTo use the app with https server, you need to configure the key in vite.config.js file and use following command
npm run dev:secure:backendFor this chat app, we have used socket.io in backend and socket.io-client on frontend. You need to configure the /socket.io/ proxy in vite.config.js file.
The original React-chatGPT-Clone was created by kas1qqqq