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 APIfor 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 installNavigate to the backend directory and start the development server:
cd backend
npm run dev
# or
yarn devNavigate to the frontend directory and start the development server:
cd frontend
npm start
# or
yarn startcd backend
npm run startcd frontend
npm run buildContributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.
