feat: Implement image fetching and storage system
Some checks failed
Deploy to BeePC / deploy (push) Has been cancelled

- Add image-fetcher module for downloading and saving images from various sources.
- Create storage module for managing image files, including downloading, verifying integrity, and cleaning up orphaned files.
- Develop gallery HTML page for displaying images with sorting and filtering options.
- Set up RESTful API routes for image management, including fetching, adding tags, and deleting images.
- Introduce setup script for initializing the database and configuring image sources.
- Implement a batch process for verifying image integrity and cleaning up old images.
- Add setup batch script for easy installation and configuration of the image storage system.
This commit is contained in:
2026-02-12 13:13:36 -05:00
parent ea6cc3fc85
commit 9c72b00b1b
19 changed files with 3004 additions and 71 deletions

View File

@@ -25,6 +25,8 @@ $files = @(
"docker-compose.yml",
"package.json",
"server.js",
"setup.js",
"image-sources.json",
".dockerignore",
"homebase.service"
)
@@ -38,12 +40,14 @@ foreach ($file in $files) {
}
}
# Copy public folder recursively
Write-Host " Copying public folder..." -ForegroundColor Gray
scp -r "public" "${REMOTE_USER}@${REMOTE_HOST}:${REMOTE_DIR}/"
if ($LASTEXITCODE -ne 0) {
Write-Host "[!!] Failed to copy public folder" -ForegroundColor Red
exit 1
# Copy directories recursively
foreach ($dir in @("public", "lib", "routes", "scripts")) {
Write-Host " Copying $dir folder..." -ForegroundColor Gray
scp -r $dir "${REMOTE_USER}@${REMOTE_HOST}:${REMOTE_DIR}/"
if ($LASTEXITCODE -ne 0) {
Write-Host "[!!] Failed to copy $dir folder" -ForegroundColor Red
exit 1
}
}
# Fix permissions on the remote server