refactor: rewrite backend in Go, replacing Python FastAPI
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.
This commit is contained in:
+2
-2
@@ -1,3 +1,3 @@
|
||||
@echo off
|
||||
cd /d "E:\Temp\Anby\MMGame\backend"
|
||||
uvicorn app.main:app --host 0.0.0.0 --port 8000 > backend.log 2>&1
|
||||
cd /d "%~dp0backend"
|
||||
go run . > backend.log 2>&1
|
||||
Reference in New Issue
Block a user