PDFPintar is a web application designed for chatting with your PDF documents. It's built using Laravel, Livewire, and a bit of React.
- PHP 8.1+
- Composer
- Node.js and npm
- MySQL or SQLite
- OpenAI API key
-
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
andOPENAI_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:
- Report issues if you encounter errors or bugs.
- Submit pull requests for bug fixes, adding new features, or improving documentation.
AGPL-3.0 license