@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