From d477db209ab0bd200fca9c8d6e872131bce3670a Mon Sep 17 00:00:00 2001 From: Li Xin Date: Thu, 17 Apr 2025 16:57:33 +0800 Subject: [PATCH] docs: update README.md --- web/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/web/README.md b/web/README.md index efb8304..513d390 100644 --- a/web/README.md +++ b/web/README.md @@ -13,17 +13,33 @@ This is the web UI project for [`DeerFlow`](https://github.com/bytedance/deer-fl DeerFlow Web UI uses `pnpm` as package manager. ```bash +cd web pnpm install ``` ## How to Run in Development Mode +**Note**: You need to start the Python API service before running the web UI. + +Start the web UI development server: + ```bash +cd web pnpm dev ``` By default, the web UI will be available at `http://localhost:3000`. +This project uses a inverted proxy to access the API service. +By default, the post request to `http://localhost:3000/api/chat/stream` will be proxied to `http://localhost:8000/api/chat/stream`. + +You can set the `NEXT_PUBLIC_API_URL` environment variable to change the default API service URL. + +```ini +# .env +NEXT_PUBLIC_API_URL=http://localhost:8000/api +``` + ## License