feat: 新增文件
This commit is contained in:
22
server/README.md
Normal file
22
server/README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Node.js bridge (POC)
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
cd server
|
||||
npm i
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
Open `http://127.0.0.1:3000` and type a prompt.
|
||||
|
||||
## Notes
|
||||
- Node calls `../main.py --script-only` via `child_process.spawn` (same container).
|
||||
- Python prints `SCENE_JSON { ... }` per scene with `flush=True` so Node can stream.
|
||||
- Recommended: run via `docker compose up --build` from repo root for unified in-container execution.
|
||||
|
||||
Reference in New Issue
Block a user