From 530174ff794de19d75eaf8fb70ab62bc72bf9539 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 29 Apr 2025 19:47:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8README.md=E4=B8=AD=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E5=88=87=E6=8D=A2=E9=93=BE=E6=8E=A5=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=B8=AD=E6=96=87=E5=92=8C=E8=8B=B1=E6=96=87?= =?UTF-8?q?=E7=89=88=E6=9C=AC=EF=BC=8C=E6=8F=90=E5=8D=87=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=8F=8B=E5=A5=BD=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ README_EN.md | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 README_EN.md diff --git a/README.md b/README.md index 47b70d90..517f9a03 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # MoviePilot-Frontend +*中文 | [English](README_EN.md)* + [MoviePilot](https://github.com/jxxghp/MoviePilot) 的前端项目,NodeJS版本:>= `v20.12.1`。 ## 推荐的IDE设置 diff --git a/README_EN.md b/README_EN.md new file mode 100644 index 00000000..3b82d234 --- /dev/null +++ b/README_EN.md @@ -0,0 +1,41 @@ +# MoviePilot-Frontend + +*[中文](README.md) | English* + +Frontend project for [MoviePilot](https://github.com/jxxghp/MoviePilot), NodeJS version: >= `v20.12.1`. + +## Recommended IDE Setup + +[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (disable Vetur). + +## Vite Configuration + +Please refer to [Vite Configuration Reference](https://vitejs.dev/config/). + +## Installation + +```sh +yarn +``` + +### Development + +```sh +yarn dev +``` + +### Build + +```sh +yarn build +``` + +### Production Deployment + +1. Use `nginx` or other web servers to host the `dist` static files. See `public/nginx.conf` for nginx configuration reference. + +2. Use `node` command to run `service.js` directly. It listens on port `3000` by default. Set the environment variable `NGINX_PORT` to adjust the port. + +```shell +node dist/service.js +```