eswar0474/FL_IDS
0
1@echo off2echo ๐ Setting up AgisFL - Federated Learning Intrusion Detection System3echo ==================================================================4 5REM Check if Node.js is installed6node --version >nul 2>&17if %errorlevel% neq 0 (8 echo โ Node.js not found. Please install Node.js 18+ first.9 echo Visit: https://nodejs.org/10 pause11 exit /b 112)13 14REM Check if Python is installed15python --version >nul 2>&116if %errorlevel% neq 0 (17 echo โ Python not found. Please install Python 3.8+ first.18 pause19 exit /b 120)21 22echo โ
Prerequisites check passed23 24REM Install Node.js dependencies25echo ๐ฆ Installing Node.js dependencies...26npm install27 28REM Install Python dependencies29echo ๐ Installing Python dependencies...30pip install flask flask-socketio psutil scapy pandas numpy scikit-learn31 32REM Install SQLite dependency33echo ๐พ Installing SQLite support...34npm install better-sqlite335 36REM Build the application37echo ๐จ Building application...38npm run build39 40REM Create start script41echo @echo off > start.bat42echo cd /d "%%~dp0" >> start.bat43echo echo Starting AgisFL... >> start.bat44echo start /min npm run dev >> start.bat45echo timeout /t 3 /nobreak ^>nul >> start.bat46echo echo AgisFL is running at http://localhost:5000 >> start.bat47echo echo Press any key to stop >> start.bat48echo pause >> start.bat49 50echo.51echo โ
Installation completed successfully!52echo.53echo ๐ To start AgisFL:54echo start.bat55echo.56echo ๐ Application will be available at: http://localhost:500057echo.58pause