A single page application for media sources (eg. videos, images, music etc) written with Laravel 8.x and Vue.js.
If you plan on using Laradock you must first pull it's submodule repo.
git submodule update --init --recursive
docker-compose up -d nginx mysql phpmyadmin redis elasticsearch workspace
docker-compose exec workspace
Use the following fix after logging into Docker container bash via Windows terminal and getting the following error: bash: $'\r': command not found
sed -i 's/\r$//' /root/aliases.sh
php artisan migrate
The following columns must be present in the .csv
file.
embed, thumbnail, album, title, categories, author, duration, views, likes, dislikes
Import command:
php artistan csv:import
You can change the name of the index that you create in App\MediaIndex.php
or use the default media_idx
.
php artisan elastic:create-index 'App\MediaIndex'
php artisan scout:import 'App\Media'
composer install
Watch
npm run watch
Dev
npm run dev
Production
npm run prod
The mysql user which executes the commands for importing CSV must have FILE privileges. eg:
GRANT FILE *.* TO 'user'@'localhost'