Files
Atomizer/atomizer-dashboard/start-dashboard.bat
Anto01 ba0b9a1fae feat(dashboard): Enhanced chat, spec management, and Claude integration
Backend:
- spec.py: New AtomizerSpec REST API endpoints
- spec_manager.py: SpecManager service for unified config
- interview_engine.py: Study creation interview logic
- claude.py: Enhanced Claude API with context
- optimization.py: Extended optimization endpoints
- context_builder.py, session_manager.py: Improved services

Frontend:
- Chat components: Enhanced message rendering, tool call cards
- Hooks: useClaudeCode, useSpecWebSocket, improved useChat
- Pages: Updated Dashboard, Analysis, Insights, Setup, Home
- Components: ParallelCoordinatesPlot, ParetoPlot improvements
- App.tsx: Route updates for canvas/studio

Infrastructure:
- vite.config.ts: Build configuration updates
- start/stop-dashboard.bat: Script improvements
2026-01-20 13:10:47 -05:00

70 lines
2.1 KiB
Batchfile

@echo off
title Atomizer Dashboard Launcher
color 0A
echo.
echo ============================================================
echo ATOMIZER DASHBOARD LAUNCHER
echo ============================================================
echo.
:: Configuration
set BACKEND_PORT=8001
set FRONTEND_PORT=3003
set CONDA_PATH=C:\Users\antoi\anaconda3
set CONDA_ENV=atomizer
:: Get the directory where this script is located
set SCRIPT_DIR=%~dp0
:: Check if conda exists at the expected path
if not exist "%CONDA_PATH%\Scripts\activate.bat" (
echo [ERROR] Conda not found at %CONDA_PATH%
echo Please update CONDA_PATH in this script.
pause
exit /b 1
)
:: Stop any existing dashboard processes first
echo [0/3] Stopping existing processes...
taskkill /F /FI "WINDOWTITLE eq Atomizer Backend*" >nul 2>&1
taskkill /F /FI "WINDOWTITLE eq Atomizer Frontend*" >nul 2>&1
for /f "tokens=5" %%a in ('netstat -ano ^| findstr :%BACKEND_PORT% ^| findstr LISTENING') do (
taskkill /F /PID %%a >nul 2>&1
)
for /f "tokens=5" %%a in ('netstat -ano ^| findstr :%FRONTEND_PORT% ^| findstr LISTENING') do (
taskkill /F /PID %%a >nul 2>&1
)
ping 127.0.0.1 -n 2 >nul
echo [1/3] Starting Backend Server (port %BACKEND_PORT%)...
start "Atomizer Backend" cmd /k "call %CONDA_PATH%\Scripts\activate.bat %CONDA_ENV% && cd /d %SCRIPT_DIR%backend && python -m uvicorn api.main:app --reload --port %BACKEND_PORT%"
:: Wait a moment for backend to start
ping 127.0.0.1 -n 4 >nul
echo [2/3] Starting Frontend Dev Server...
start "Atomizer Frontend" cmd /k "cd /d %SCRIPT_DIR%frontend && npm run dev"
:: Wait for frontend to start
ping 127.0.0.1 -n 6 >nul
echo [3/3] Opening browser...
echo.
echo ============================================================
echo Dashboard is starting up!
echo.
echo Backend: http://localhost:%BACKEND_PORT%
echo Frontend: http://localhost:%FRONTEND_PORT%
echo.
echo Close the terminal windows to stop the servers.
echo ============================================================
echo.
:: Open browser to frontend
start http://localhost:%FRONTEND_PORT%
echo Dashboard launched! You can close this window.
echo.
pause