This repository is an example project demonstrating the integration of ChatGPT using a React frontend and Express backend.
-
Frontend:
- Built with
create-react-app
- State management with
redux-toolkit
- Side effects handling with
redux-saga
- UI components styled with
Ant Design
- Built with
-
Backend:
- Server created with
Express
- Integration with
OpenAI API
for ChatGPT functionality
- Server created with
- Node.js
- npm or yarn
- Clone the repository:
git clone https://github.com/bcExpt1123/chatgpt-example.git cd chatgpt-example
- Install dependencies for both frontend and backend:
cd backend
npm install
cd ../frontend
npm install
Navigate to the backend directory and start the development server:
cd backend
npm run dev
# or
yarn dev
Navigate to the frontend directory and start the development server:
cd frontend
npm start
# or
yarn start
cd backend
npm run start
cd frontend
npm run build
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.