Files
AiVideo/server/README.md
2026-03-18 17:36:07 +08:00

23 lines
428 B
Markdown

# 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.