Skip to content

vue-cli3下搭建的后台脚手架,集成常用功能,简化开发流程

Notifications You must be signed in to change notification settings

jianglove7/create-vue-admin

Repository files navigation

create-vue-admin

1.功能情况

配置

  • √ 配置多环境变量

  • √ 配置基础 vue.config.js

  • √ 配置 proxy 跨域

  • √ 图片压缩

  • √ gzip压缩

  • √ 发布环境去除console

  • √ 支持使用svg图片

  • √ sprites 精灵图自动合成,支持分组

  • √ 静态mock功能,api模块化功能

  • √ scss 常用函数,类

系统功能

  • √ 登陆功能
  • √ 多语言
  • √ 侧边栏
  • √ tweenjs补间动画

TODO

  • 右键菜单
  • 全站CDN加速

2.功能说明

3.项目安装

yarn install

Compiles and hot-reloads for development

yarn run serve

Compiles and minifies for production

yarn run build

Run your tests

yarn run test

Lints and fixes files

yarn run lint

Run your unit tests

yarn run test:unit

发布

1.编写 nginx.conf 配置

#user  nobody;

worker_processes  2;

#工作模式及连接数上线
events {
    worker_connections  1024;   #单个工作进程 处理进程的最大并发数
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    #sendfile 指令指定 nginx 是否调用 sendfile 函数(zero copy 方式)来输出文件,对于普通应用,
    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    # 开启GZIP
    gzip  on;

    # # 监听 80 端口,转发请求到 3000 端口
    server {
        #监听端口
        listen      80;
        #编码格式
        charset utf-8;

        # 前端静态文件资源
        location / {
	    root  /usr/src/app;
            index index.html index.htm;
            try_files $uri $uri/ @rewrites;
        }
        # 配置如果匹配不到资源,将url指向 index.html, 在 vue-router 的 history 模式下使用,就不会显示404
        location @rewrites {
            rewrite ^(.*)$ /index.html last;
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }
}

4.运用技术及参考资料

  1. vue
  2. vuex
  3. vue-router
  4. element-ui
  5. axios
  6. vue-i18n
  7. echarts
  8. tinymce
  9. mxgraph
  10. moment
  11. lodash lodash-webpack-plugin
  12. pdf.js pdf.js-简书
  13. gantt

About

vue-cli3下搭建的后台脚手架,集成常用功能,简化开发流程

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published