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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 开发环境准备
|
|
|
|
|
> 1. 安装Java8,配置好环境变量
|
|
|
|
|
> 2. 安装Redis到本机,启动
|
|
|
|
|
> 3. 安装Mysql5.7,启动
|
|
|
|
|
> 4. 安装Elasticsearch,具体可参考:ES安装.md
|
|
|
|
|
> 5. 安装LibreOffice:
|
|
|
|
|
> [下载链接](https://download.documentfoundation.org/libreoffice/stable/7.2.5/rpm/x86_64/LibreOffice_7.2.5_Linux_x86-64_rpm.tar.gz)
|
|
|
|
|
|
|
|
|
|
# 项目启动与运行
|
|
|
|
|
|
|
|
|
|
## 后端启动
|
|
|
|
|
1. IDEA 打开项目:后端工程 jeecg-boot
|
|
|
|
|
2. 执行Sql脚本: db/km.sql
|
|
|
|
|
脚本工作:自动创建库km, 并初始化数据 。
|
|
|
|
|
3. 修改项目配置 (数据库、redis、ES等)
|
|
|
|
|
配置文件: jeecg-boot-module-system/src/main/resources/application-dev.yml
|
|
|
|
|
|
|
|
|
|
redis配置:
|
|
|
|
|
![KY KMS](./Docs/Pics/redis.png)
|
|
|
|
|
DB配置:
|
|
|
|
|
![KY KMS](./Docs/Pics/db.png)
|
|
|
|
|
ES配置:
|
|
|
|
|
![KY KMS](./Docs/Pics/ES.png)
|
|
|
|
|
LibreOffice与文件上传配置:
|
|
|
|
|
![KY KMS](./Docs/Pics/office.png)
|
|
|
|
|
4. 通过右侧父POM进行install(下载依赖和打包)
|
|
|
|
|
![KY KMS](./Docs/Pics/pom.png)
|
|
|
|
|
|
|
|
|
|
5. 启动项目&访问:
|
|
|
|
|
> 以上配置完成后,即可启动后台项目。
|
|
|
|
|
> 找到类 jeecg-boot-module-system/src/main/java/org/jeecg/JeecgSystemApplication.java 右键执行启动。
|
|
|
|
|
> 通过 http://localhost:8080/jeecg-boot/doc.html 访问后台项目的swagger地址。
|
|
|
|
|
|
|
|
|
|
## 前端环境安装
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
安装node.js
|
|
|
|
|
如果您电脑未安装Node.js,请安装它。
|
|
|
|
|
验证
|
|
|
|
|
# 出现相应npm版本即可
|
|
|
|
|
npm -v
|
|
|
|
|
# 出现相应node版本即可
|
|
|
|
|
node -v
|
|
|
|
|
复制
|
|
|
|
|
安装yarn
|
|
|
|
|
# 全局安装yarn
|
|
|
|
|
npm i -g yarn
|
|
|
|
|
# 验证
|
|
|
|
|
yarn -v # 出现对应版本号即代表安装成功
|
|
|
|
|
配置镜像
|
|
|
|
|
npm config set registry https://registry.npm.taobao.org --global
|
|
|
|
|
npm config set disturl https://npm.taobao.org/dist --global
|
|
|
|
|
|
|
|
|
|
yarn config set registry https://registry.npm.taobao.org --global
|
|
|
|
|
yarn config set disturl https://npm.taobao.org/dist --global
|
|
|
|
|
```
|
|
|
|
|
## 前端启动
|
|
|
|
|
1. IDEA 打开项目:前端工程 ant-design-vue-jeecg
|
|
|
|
|
|
|
|
|
|
2. 选中package.json右键显示npm命令
|
|
|
|
|
![KY KMS](./Docs/Pics/npm.png)
|
|
|
|
|
|
|
|
|
|
3. 通过命令 yarn install或者快捷 pre下载依赖,点击serve 启动项目
|
|
|
|
|
![KY KMS](./Docs/Pics/serv.png)
|
|
|
|
|
4. 配置后台接口
|
|
|
|
|
修改接口地址 .env.development:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
NODE_ENV=development
|
|
|
|
|
VUE_APP_API_BASE_URL=http://localhost:8080/km
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
5. 点击serve 启动项目,看到如下日志 则启动成功
|
|
|
|
|
![KY KMS](./Docs/Pics/web_success.png)
|
|
|
|
|
6. 通过 http://localhost:3000 访问前端项目,默认账号密码: admin/123456
|