# beevis-admin-ui **Repository Path**: moonseason/beevis-admin-ui ## Basic Information - **Project Name**: beevis-admin-ui - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-18 - **Last Updated**: 2025-09-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # beevis-admin-ui ## Project Environment 请先安装node及npm,Linux推荐使用nvm安装 ``` wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash source ~/.bash_profile nvm install v10.16.0 nvm use v10.16.0 ``` ## Deploy Shell Demo ``` npm install npm run build rm -rf /root/nginx-html/html/* cp -ri ./dist/* /root/nginx-html/html/ ``` ## Project setup ``` # 安装依赖。如果使用自动部署,建议每次build前都运行此命令 npm install ``` ### Compiles and hot-reloads for development ``` # serve 用于开发测试环境 npm run serve ``` ### Compiles and minifies for production ``` # 在当前目录下生成dist文件夹,里面为包装好的前端代码。请将此代码放到您的网站根目录下 npm run build # 自动构建请执行 npm install && npm run build ``` ### E2E tests(已废除) ``` npm run cypress:open ``` * See [Cypress Reference](https://docs.cypress.io/). * Cypress 是一款面对E2E的自动化测试工具套件,没有做深度的使用探索,只写了一点登录测试样例,有需要的话请参考上面的链接 ### Lints and fixes files ``` npm run lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ### 环境变量 1. 关于环境变量。测试环境在 .env.development 正式环境在 .env.production 2. 因为后端已移除CORS,请在服务器上配置转发规则,如使用nginx服务器请在`nginx.conf`中server字段中添加如下配置 ``` server { location /vis { proxy_pass http://ip:port; } } ``` 在http{}段中设置nginx上传大小为 10M ``` client_max_body_size 10M; client_body_buffer_size 128k; ``` ### 版本依赖 1. 依赖beevis-admin后台版本:2.1.0 2. OTT动态专题功能依赖ott_epg 6.10.0 (OttService/QueryProgramee接口支持CORS) ### 需求文档 https://orientalpearl.sharepoint.cn/:w:/r/sites/grouprdproject/_layouts/15/Doc.aspx?sourcedoc=%7BDCD1730F-833C-4AD4-BEC4-E975C7F2EEFE%7D&file=%E8%9C%82%E5%B7%A2%E5%90%8E%E5%8F%B0V2.1.0%E9%9C%80%E6%B1%82%E6%96%87%E6%A1%A3.docx&action=default&mobileredirect=true ### 注意 1. 请部署前删除上次部署的代码,因为每次打包出来的文件名不一致,不会覆盖上次部署的代码