Books Library is a test web application with import from XML file. This app is based on PHP framework "Laravel" version 8.9.0 with using JS framework "Vue.js" to render front-office part.
- Copy files on your server,
- Create database,
- Create a config file
.envfrom.env.exampleand set database:DB_HOST=localhost DB_PORT=3306 DB_DATABASE=books_library DB_USERNAME=root DB_PASSWORD=password - Go to root directory of this downloaded site,
- Run
npm install(If commandnpmis not found please read https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), - Run
composer install(If commandnpmis not found please read https://getcomposer.org/doc/00-intro.md), - Run
php artisan key:generateto generateAPP_KEYin the config file, - Run
php artisan config:cacheto clear cache in order to apply changes in the config file, - Run
php artisan migratein order to create tables in your database, - Setup your http server to the folder
/publicmanually or runphp artisan serveto start it on address http://localhost:8000/.
- Go to back-office and upload XML file with books data:

- The uploaded file will be processed by laravel queue job, so you need to keep run it on server by command
php artisan queue:work, - Result of the import from queue you can check in the log file
/storage/logs/laravel.log.
- test-100-books.xml - 100 books
- demo-1000-books.xml - 1000 books
Author: Yuriy Bakhtin
