- Composer
- PHP 8.2
- Laragon (Don't use artisan serve, otherwise the python won't be execute because bug on the library)
- Python with installed
tensorflow, joblib, numpy, scikit-learn, nltk
git clone https://github.com/rheznendra/petrichor-studpen
composer install
cp .env.example .env
php artisan key-generate
pip install tensorflow nltk joblib numpy nltk scikit-learn
- Open settings > auto create virtual host must be ON > Close setting
- Press start button on Laragon (If there's any Windows pop up for apache/nginx (i use nginx) then click YES)
- Open your browser then type http://petrichor-studpen.test or change petrichor-studpen to your folder name you cloned from this github.
If you use Linux for example Ubuntu and had python3 installed, do this on terminal, otherwise it will not execute the python script.
sudo apt install python-is-python3
alias python=python3
This step must be done because the library i use to execute python script on laravel use command python
and not python3
to execute.