This repository contains the frontend of an application that integrates with the OpenAI API, using React.js. It works in conjunction with the backend repository expressjs-openai.
-
Clone the repository:
git clone https://github.com/rezadaulay/reactjs-openai.git
-
Navigate into the project directory:
cd reactjs-openai -
Install dependencies:
npm install
-
Ensure the backend server from the expressjs-openai repository is running.
-
Start the React development server:
npm run dev
-
Visit
http://localhost:5173in your web browser. -
Use the provided interface to interact with the OpenAI API via the backend server.
You can configure the application by modifying the .env file. This file contains settings such as the backend server URL.