修改 ReadMe:新增运行方式说明

This commit is contained in:
巴拉迪维 2021-09-15 14:46:31 +08:00
parent 90f044a380
commit 38c5d045d8
1 changed files with 10 additions and 0 deletions

View File

@ -22,4 +22,14 @@
3. 在本地分支修改任务并推送到自己名下的仓库 3. 在本地分支修改任务并推送到自己名下的仓库
4. 在 [仓库首页](https://forgeplus.trustie.net/projects/Gitlink/gitlink-notification-system) 触发 pull request 并等待审核处理 4. 在 [仓库首页](https://forgeplus.trustie.net/projects/Gitlink/gitlink-notification-system) 触发 pull request 并等待审核处理
### 使用 Docker 运行
1. git pull 拉取本仓库并保存到本地
2. 下载并安装 [Docker Engine](https://docs.docker.com/engine/install/)
3. 配置好 Java 环境以及 Maven 环境 (Java 8 版本以上、Maven 3 版本以上)
4. 进入到仓库根目录下的 `{repo}/middleware` 目录并执行 `start_docker_compose.sh` 脚本
5. 浏览器访问
1. 数据推送相关接口http://localhost:58082/doc.html
2. 数据读取相关接口http://localhost:58080/doc.html
6. 停止 Docker 时环境时请执行 `{repo}/middleware/end_docker_compose.sh` 脚本