MERN PDF Chat is a web application that allows users to upload PDFs, view them, and chat with them. It uses ChatGPT 3.5-Turbo via the OpenAI API to understand the PDF's text, and has a user-friendly UI that allows users to interact with the PDF like a chat bot. This README provides instructions for setting up and running both the frontend and backend components of the application.
- Install the required dependencies:
cd backend
npm install
-
Set up environment variables by creating a
.env
file and populating it with the necessary values. Example file can be found inbackend/.env.example
. -
Start the backend server:
npm start
The backend server will run at localhost:8000.
Note: Make sure you have MongoDB set up and running.
- Install the required dependencies:
cd frontend
npm install
- Start the frontend server:
npm start
The frontend server will run at localhost:3000. You can access the running application by opening this URL in your web browser.