Files
zyplayer-doc/zyplayer-doc-ui/console-ui/README.md
2020-12-20 21:59:09 +08:00

48 lines
980 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# zyplayer-doc-db项目的UI
## 常见问题
1、命令行要进入这个文件夹才能执行命令
zyplayer-doc/zyplayer-doc-ui/db-ui
2、修改host否则run不起来
在文件 C:\Windows\System32\drivers\etc\hosts 末尾增加:
127.0.0.1 local.zyplayer.com
## 配置文件
配置开发环境和线上环境的请求域名地址:
开发环境:.env.development
线上环境:.env.production
## 环境要求
`Node >= 6`
## 开始
``` bash
# 执行下面的命令初始化
npm install
```
## 开发环境
``` bash
# 执行下面的命令后即可到启动前端工程
npm run dev
```
## 打包
``` bash
npm run build
# 开发完成后执行打包命令然后复制dist目录里的文件到zyplayer-doc-db/resources目录下
# 复制完成后记得修改index.html为doc-db.html
# todo是否可以直接打包为doc-db.html不用手动改名字
# todo是否可以直接打包到zyplayer-doc-db/resources文件夹下难得复制
```