| 12345678910111213141516171819202122232425262728293031 |
- @echo off
- rem ===================================================================
- rem Customs Data Agent - one click start
- rem Double click this file. It will:
- rem 1. check Node.js / Python
- rem 2. install missing dependencies
- rem 3. start tools service (Python) + BFF (Node)
- rem 4. open the browser
- rem ===================================================================
- setlocal
- cd /d "%~dp0"
- chcp 65001 >nul
- where node >nul 2>nul
- if errorlevel 1 (
- echo.
- echo [ERROR] Node.js not found.
- echo Please install Node.js 22 or newer from https://nodejs.org/ and try again.
- echo.
- pause
- exit /b 1
- )
- node "scripts\start.mjs" %*
- set EXITCODE=%errorlevel%
- if not "%EXITCODE%"=="0" (
- echo.
- echo Startup failed with exit code %EXITCODE%.
- pause
- )
- exit /b %EXITCODE%
|