mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-10-06 01:08:11 +08:00
refactor: 将 WebUI 源码纳入仓库,移除打包产物
- 新增 webui/ 前端源码目录(React+Vite+TypeScript+Tailwind) - 删除 api/webui/ 中旧的打包静态资源 - 更新 .gitignore 忽略 api/webui/ 构建输出和 webui/node_modules - 更新 README 增加前端构建说明
This commit is contained in:
@@ -157,6 +157,18 @@ uv run main.py --help
|
||||
|
||||
MediaCrawler provides a web-based visual operation interface, allowing you to easily use crawler features without command line.
|
||||
|
||||
#### Build Frontend Assets (required for first-time use)
|
||||
|
||||
The WebUI frontend source lives in the `webui/` directory. You need to build the static assets before the API server can serve them.
|
||||
|
||||
```shell
|
||||
cd webui
|
||||
npm install
|
||||
npm run build # outputs to api/webui/
|
||||
```
|
||||
|
||||
> For development, run `npm run dev` instead — it starts the Vite dev server on port 5173 and proxies `/api` to 8080.
|
||||
|
||||
#### Start WebUI Service
|
||||
|
||||
```shell
|
||||
|
||||
Reference in New Issue
Block a user