An overkill implementation of an automated image gallery. Based on my single-file version from many years ago, but far more complicated for no reason.
- Clone the repository
composer install
cp .env.example .env
php artisan key:generate
- Set the path to your images in the filesystem as
GALLERY_PATH
in.env
npm ci && npm run prod
- Point your web server to the
public/
directory
If you want to require a login to access the app, there are a few extra steps:
- Configure a database connection in
.env
php artisan migrate
- Set
GALLERY_AUTH=true
in.env
php artisan user:add
If you want users to be able to create their own accounts, set GALLERY_REGISTRATION=true
in .env
. Otherwise, you'll need to manually create new users from the command line with php artisan user:add
.
To generate thumbnail images for videos, ffmpeg
and ffmprobe
are required to be in your PATH
.