thread-master/backend/dev-console/README.md

38 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 巡樓 Dev Console
重做正式前端前的**最小開發面板**:登入、人設 CRUD、8D 公開爬蟲任務與 job 輪詢。
## 啟動
```bash
# 1. 後端 API另開終端
cd backend
go run gateway.go -f etc/gateway.yaml
# 2. Node 8D worker另開終端人設 8D 需要)
cd backend/worker
npm install
npm run style-8d
# 3. Dev Console
cd backend/dev-console
npm install
npm run dev
```
瀏覽器開啟 http://127.0.0.1:5173 。API 透過 Vite proxy 轉到 `http://127.0.0.1:8890`,無需處理 CORS。
## 使用順序
1. 使用已建立帳號登入tenant 預設 `default`;封測期間不開放公開註冊)
2. **AI 設定**:選研究 provider → 貼 API key → **讀取模型列表** → 選 model → **儲存**
3. 建立人設 → 點選列表中的一筆
4. 填對標 Threads 帳號 → **開始 8D**
5. 自動輪詢 job完成後下方人設詳情會出現 `style_profile`
## 注意
- 8D 分析使用**研究用** provider / model + API key與 Chrome session 無關)
- 若尚無經營帳號Dev Console 會自動建立「Dev Console」帳號AI key 實際存會員 scope
- 僅供本機開發,不是產品 UI