CoolFace
Apppublic

eswar0474/FL_IDS

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
setup.bat58 linesDownload Raw Back to root
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