7 Star 40 Fork 35

ByteCub / bytecub-manager-ui

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

ByteCub IoT platform

介绍

ByteCub物联网平台PC WEB UI,目前只支持chromium内核浏览器,在IE下部分页面显示会失真

服务端代码

源码地址 https://gitee.com/byte-cub/bytecub

开发环境

在vue.config.js中修改管理后台请求地址,默认为http://127.0.0.1:8080/

  1. npm install
  2. npm run dev 即可启动开发环境

生产环境

  1. 执行 npm run build:prod
  2. 将dist文件上传至服务器
  3. 修改nginx配置如下:
    server_name  www.domain.com;
    # gzip config
    gzip on;
    gzip_min_length 1k;
    gzip_comp_level 9;
    gzip_types text/plain text/css text/javascript application/json application/javascript application/x-javascript application/xml;
    gzip_vary on;
    gzip_disable "MSIE [1-6]\.";

    root /home/apps/www/manager-web/dist; #vue dist包存储路径
    include /etc/nginx/mime.types;
    location / {
        index  index.html;
    }

    location /admin/ {
      
        proxy_pass http://127.0.0.1:8080/admin/; #修改此地址为后台服务地址
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Host $host:$server_port;
        proxy_set_header X-Real-IP  $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_connect_timeout   1;
        proxy_buffering off;
        chunked_transfer_encoding off;
        proxy_cache off;
        proxy_send_timeout      30m;
        proxy_read_timeout      30m;
        client_max_body_size    100m;
    }
}

使用说明

(准备中,敬请期待)请移步至 doc.bytecub.cn

部分截图

鸣谢

vue-element-admin

Comments ( 4 )

Sign in for post a comment

About

ByteCub物联网平台WEB UI,使用vue2.x开发 spread retract
JavaScript and 6 more languages
MIT
Cancel

bytecub-manager-ui

Contributors

All

Activities

load more
can not load any more
JavaScript
1
https://gitee.com/byte-cub/bytecub-manager-ui.git
git@gitee.com:byte-cub/bytecub-manager-ui.git
byte-cub
bytecub-manager-ui
bytecub-manager-ui
master

Search

102255 3a0e046c 1850385 102255 7aaa926c 1850385