Files
HomeBase/setup.bat
Spencer 9c72b00b1b
Some checks failed
Deploy to BeePC / deploy (push) Has been cancelled
feat: Implement image fetching and storage system
- 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.
2026-02-12 13:13:36 -05:00

46 lines
1000 B
Batchfile

@echo off
REM HomeBase Image Storage - Setup Script
REM Run this script to initialize the image storage system
echo.
echo ========================================
echo HomeBase Image Storage Setup
echo ========================================
echo.
REM Check if Node.js is installed
where node >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Node.js is not installed or not in PATH
echo Please install Node.js from https://nodejs.org
pause
exit /b 1
)
echo [1/3] Installing dependencies...
call npm install
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Failed to install dependencies
pause
exit /b 1
)
echo.
echo [2/3] Initializing database...
call node setup.js init
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Failed to initialize database
pause
exit /b 1
)
echo.
echo [3/3] Setup complete!
echo.
echo Next steps:
echo 1. Edit image-sources.json to add your image sources
echo 2. Set "enabled": true for sources you want to use
echo 3. Run: npm start
echo.
pause