PDFPintar is a web application designed for chatting with your PDF documents. It's built using Laravel, Livewire, and a bit of React.
Clone the repository:
git clone https://github.com/ahmadrosid/pdfpintar.git
cd pdfpintar
Install PHP dependencies:
composer install
Install JavaScript dependencies:
npm install
Copy the .env.example
file to .env
and configure your environment variables:
cp .env.example .env
Make sure to set OPENAI_API_KEY
and OPENAI_ORGANIZATION
in your .env
file.
Generate an application key:
php artisan key:generate
Run database migrations:
php artisan migrate
Build frontend assets:
npm run build
Link storage:
php artisan storage:link
Start the development server:
php artisan serve
Make sure to set the following environment variables in your .env
file:
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_ORGANIZATION=your_openai_organization_id_here
Replace your_openai_api_key_here
with your actual OpenAI API key, and your_openai_organization_id_here
with your OpenAI organization ID if applicable.
If you want to contribute to this project, I really appreciate it. Here are some things you can do:
AGPL-3.0 license