This repository contains a web application that integrates GPT (Generative Pre-trained Transformer) using the MERN (MongoDB, Express.js, React.js, Node.js) stack along with the OpenAI API. The application allows users to interact with the GPT model through a web interface.
- MERN Stack: MongoDB, Express.js, React.js, Node.js
- Vite: For client-side build tooling
- Material UI: UI components for React.js
- OpenAI API: Integration for utilizing the GPT model
main-folder
├── client
│ ├── [All files that come with Vite project]
└── server
├── index.js
├── routes
│ └── chatRoutes.js
├── package.json
└── package-lock.json
-
Clone the Repository:
git clone https://github.com/MuhammadSaif/GPT-Web-Integration.git
-
Install Dependencies:
- Open terminal in both the
client
andserver
folders. - Run the following command in each folder:
npm install
- Open terminal in both the
-
Start Servers:
- Start both servers to run the application.
- For the client, use:
npm run dev
- For the server, run:
node index.js
-
You're All Set!:
- You can now access the web application and interact with the GPT model.
- Kartikey Dwivedi
- Email: [email protected]
This project is licensed under the MIT License.