Kaisa OCR is a website for scan, collect, archive public documentations (公文).
Install dependencies:
$ composer install
$ npm ci
Copy and edit .env:
$ php -r "file_exists('.env') || copy('.env.example', '.env');"
$ vim .env
Install application:
$ php artisan key:generate
$ php artisan migrate # or migrate:fresh to re-install
Compile frontend assets:
$ npm run build
If you want to run the vite server with https enabled, please set VITE_HTTPS_CERT and VITE_HTTPS_KEY in .env with your https certification, and configure a proper VITE_URL. For example:
VITE_URL=https://kaisa-ocr.test:5934
VITE_HTTPS_KEY=/Users/user/.config/valet/Certificates/kaisa-ocr.test.key
VITE_HTTPS_CERT=/Users/user/.config/valet/Certificates/kaisa-ocr.test.crt
To create a new user:
$ php artisan make:userAGPL-3.0-or-later
See LICENSE for details.