@echo off
chcp 65001 >nul
title InfoGenie Dev Launcher

echo [InfoGenie] 启动本地开发环境...

:: 启动后端（新窗口）
start "InfoGenie-Backend" cmd /k "cd /d %~dp0infogenie-backend-go && set APP_ENV=development && go run ./cmd/server/"

:: 启动前端（新窗口）
start "InfoGenie-Frontend" cmd /k "cd /d %~dp0infogenie-frontend && npm start"

echo [InfoGenie] 前后端已在独立窗口启动
echo   后端: http://localhost:5002
echo   前端: http://localhost:3000
