推广小程序后台代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
3.1 KiB

  1. Ant Design Jeecg Vue
  2. ====
  3. 当前最新版本: 3.1.0(发布日期:20220301)
  4. Overview
  5. ----
  6. 基于 [Ant Design of Vue](https://vuecomponent.github.io/ant-design-vue/docs/vue/introduce-cn/) 实现的 Ant Design Pro Vue 版
  7. Jeecg-boot 的前端UI框架,采用前后端分离方案,提供强大代码生成器的低代码平台。
  8. 前端页面代码和后端功能代码一键生成,不需要写任何代码,保持jeecg一贯的强大!!
  9. #### 前端技术
  10. - 基础框架:[ant-design-vue](https://github.com/vueComponent/ant-design-vue) - Ant Design Of Vue 实现
  11. - JavaScript框架:Vue
  12. - Webpack
  13. - node
  14. - yarn
  15. - eslint
  16. - @vue/cli 3.2.1
  17. - [vue-cropper](https://github.com/xyxiao001/vue-cropper) - 头像裁剪组件
  18. - [@antv/g2](https://antv.alipay.com/zh-cn/index.html) - Alipay AntV 数据可视化图表
  19. - [Viser-vue](https://viserjs.github.io/docs.html#/viser/guide/installation) - antv/g2 封装实现
  20. 项目下载和运行
  21. ----
  22. - 拉取项目代码
  23. ```bash
  24. git clone https://github.com/zhangdaiscott/jeecg-boot.git
  25. cd jeecg-boot/ant-design-vue-jeecg
  26. ```
  27. - 安装依赖
  28. ```
  29. yarn install
  30. ```
  31. - 开发模式运行
  32. ```
  33. yarn run serve
  34. ```
  35. - 编译项目
  36. ```
  37. yarn run build
  38. ```
  39. - Lints and fixes files
  40. ```
  41. yarn run lint
  42. ```
  43. 其他说明
  44. ----
  45. - 项目使用的 [vue-cli3](https://cli.vuejs.org/guide/), 请更新您的 cli
  46. - 关闭 Eslint (不推荐) 移除 `package.json``eslintConfig` 整个节点代码
  47. - 修改 Ant Design 配色,在文件 `vue.config.js` 中,其他 less 变量覆盖参考 [ant design](https://ant.design/docs/react/customize-theme-cn) 官方说明
  48. ```ecmascript 6
  49. css: {
  50. loaderOptions: {
  51. less: {
  52. modifyVars: {
  53. /* less 变量覆盖,用于自定义 ant design 主题 */
  54. 'primary-color': '#F5222D',
  55. 'link-color': '#F5222D',
  56. 'border-radius-base': '4px',
  57. },
  58. javascriptEnabled: true,
  59. }
  60. }
  61. }
  62. ```
  63. 附属文档
  64. ----
  65. - [Ant Design Vue](https://vuecomponent.github.io/ant-design-vue/docs/vue/introduce-cn)
  66. - [报表 viser-vue](https://viserjs.github.io/demo.html#/viser/bar/basic-bar)
  67. - [Vue](https://cn.vuejs.org/v2/guide)
  68. - [路由/菜单说明](https://github.com/zhangdaiscott/jeecg-boot/tree/master/ant-design-vue-jeecg/src/router/README.md)
  69. - [ANTD 默认配置项](https://github.com/zhangdaiscott/jeecg-boot/tree/master/ant-design-vue-jeecg/src/defaultSettings.js)
  70. - 其他待补充...
  71. 备注
  72. ----
  73. > @vue/cli 升级后,eslint 规则更新了。由于影响到全部 .vue 文件,需要逐个验证。既暂时关闭部分原本不验证的规则,后期维护时,在逐步修正这些 rules
  74. Docker 镜像使用
  75. ----
  76. ```
  77. # 1.修改前端项目的后台域名
  78. .env.development
  79. 域名改成: http://jeecg-boot-system:8080/jeecg-boot
  80. # 2.先进入打包前端项目
  81. yarn run build
  82. # 3.构建镜像
  83. docker build -t nginx:jeecgboot .
  84. # 4.启动镜像
  85. docker run --name jeecg-boot-nginx -p 80:80 -d nginx:jeecgboot
  86. # 5.配置host
  87. # jeecgboot
  88. 127.0.0.1 jeecg-boot-redis
  89. 127.0.0.1 jeecg-boot-mysql
  90. 127.0.0.1 jeecg-boot-system
  91. # 6.访问前台项目
  92. http://localhost:80
  93. ```