Files
xau-ai-trading-bot/docker/scripts/start-all.bat
T
buckybonez f7ca8003ce refactor: reorganize project structure — consolidate Docker files, clean root
- Delete temp files: _tmp_analysis.py, nul, dashboard_screenshot.png
- Move ea/ to archive/ea/ (deprecated)
- Move 12 Docker helper scripts (.bat/.sh) to docker/scripts/
- Move 5 Docker docs to docker/docs/
- Move .env.docker.example, requirements-docker.txt to docker/
- Update all scripts with cd to project root for correct path resolution
- Update all doc references to new paths
- Update .gitignore with bot.pid, bot_output.log, *.png patterns
- Update CLAUDE.md, README.md directory trees

Root reduced from ~40 files to 12 essential files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 14:21:11 +07:00

53 lines
1.2 KiB
Batchfile

@echo off
REM Start API and Dashboard in separate windows
echo.
echo ========================================
echo XAUBot AI - Starting All Services
echo ========================================
echo.
cd /d "%~dp0..\.."
REM Check database
echo [1/3] Checking database...
docker ps --filter "name=trading_bot_db" --format "{{.Names}}: {{.Status}}" 2>nul
if errorlevel 1 (
echo.
echo WARNING: Database not running!
echo Please start with: docker-compose up -d postgres
echo.
pause
exit /b 1
)
echo.
echo [2/3] Starting API...
start "Trading API" cmd /k docker\scripts\start-api.bat
echo Waiting for API to start...
timeout /t 5 /nobreak >nul
echo.
echo [3/3] Starting Dashboard...
start "Web Dashboard" cmd /k docker\scripts\start-dashboard.bat
echo.
echo ========================================
echo All Services Started!
echo ========================================
echo.
echo Access Points:
echo - Dashboard: http://localhost:3000
echo - API: http://localhost:8000
echo - API Docs: http://localhost:8000/docs
echo - Database: localhost:5432
echo.
echo Two windows will open:
echo 1. Trading API (FastAPI)
echo 2. Web Dashboard (Next.js)
echo.
echo Close this window when done.
echo.
pause