Please make sure that you have at least php version 8.1 and nodejs installed.
- clone this repo
git clone https://github.com/shaheenfawzy/kotobati-scraper
- run the following to install the dependencies
composer install
- copy .env.example to .env and the configure the database credentials
cp .env.example .env
- generate application encryption key
php artisan key:generate
- run the migrations
php artisan migrate
- install npm packages and build assets
npm install && npm run build
- run the app
php artisan serve
- you now can access the app from you browser at
http://localhost:8000
- you can start the scraper and scrape single book or number of pages of books from the terminal by running the following
php artisan scrape:books {url} --pages={number of pages to scrape}