Personal application to backup my reading and watching history, built with Laravel, Livewire and Flux UI.
git clone <url>
cd personal-databasedocker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php84-composer:latest \
composer install --ignore-platform-reqscp .env.example .env./vendor/bin/sail up -dThe first run may take a few minutes (building the Docker image).
./vendor/bin/sail composer run setupThe application is available at http://localhost.
Start the containers:
./vendor/bin/sail up -dRun the development server (Vite + queue worker + logs):
./vendor/bin/sail composer run devStop the containers:
./vendor/bin/sail downArtisan commands:
./vendor/bin/sail artisan <command>Seed the database with test data:
./vendor/bin/sail artisan db:seedWipe the database and reseed:
./vendor/bin/sail artisan migrate:fresh --seedTests:
./vendor/bin/sail artisan test --compactHandy alias (add to ~/.zshrc or ~/.bashrc):
alias sail='./vendor/bin/sail'Then all commands can be written as sail up -d, sail artisan migrate, etc.