Port the FastAPI backend to Go 1.26, preserving all API functionality: - auth (register/login/guest/logout/profile/history) with JWT + bcrypt - scripts (list/detail) backed by embedded sample_data.json - games (create/join/start/chat/phase/clue/vote/state/replay) + WebSocket - rule-based NPC agent plus DeepSeek/Ollama AI backends - SQLite persistence via modernc.org/sqlite (pure Go, no cgo) Frontend and documents are unchanged.
29 lines
680 B
Batchfile
29 lines
680 B
Batchfile
@echo off
|
|
title AI Murder Mystery MVP (Go Backend)
|
|
|
|
echo ========================================
|
|
echo AI Murder Mystery MVP - Launcher
|
|
echo ========================================
|
|
echo.
|
|
|
|
set "ROOT=%~dp0"
|
|
|
|
echo [1/2] Starting Go backend (port 8000)...
|
|
start "MM-Backend" /D "%ROOT%backend" go run .
|
|
|
|
ping 127.0.0.1 -n 3 >nul
|
|
|
|
echo [2/2] Starting frontend (port 5173)...
|
|
start "MM-Frontend" /D "%ROOT%frontend" npx vite --host
|
|
|
|
ping 127.0.0.1 -n 3 >nul
|
|
|
|
echo.
|
|
echo ========================================
|
|
echo Ready!
|
|
echo Backend: http://localhost:8000
|
|
echo Frontend: http://localhost:5173
|
|
echo ========================================
|
|
|
|
start http://localhost:5173
|
|
pause |