2024-02-27 16:39:49 +08:00
|
|
|
### 所需环境
|
|
|
|
|
|
2024-05-21 11:24:27 +08:00
|
|
|
* jdk 1.8
|
|
|
|
|
* mysql 8.0.+
|
|
|
|
|
* redis 6.0.+
|
|
|
|
|
* maven 3.5.+
|
|
|
|
|
* node 18.12.+
|
|
|
|
|
* pnpm 9.1.+
|
2024-02-27 16:39:49 +08:00
|
|
|
|
|
|
|
|
⚡ maven 推荐使用阿里云 mirror
|
|
|
|
|
⚡ npm 建议使用淘宝镜像 `npm config set registry https://registry.npmmirror.com/`
|
2024-05-21 11:24:27 +08:00
|
|
|
⚡ pnpm 建议使用淘宝镜像 `pnpm config set registry https://registry.npmmirror.com/`
|
2024-02-27 16:39:49 +08:00
|
|
|
|
|
|
|
|
### 配置
|
|
|
|
|
|
|
|
|
|
1. 拉取代码
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
# github
|
2024-05-16 00:03:30 +08:00
|
|
|
git clone https://github.com/lijiahangmax/orion-visor
|
2024-02-27 16:39:49 +08:00
|
|
|
# gitee
|
2024-05-16 00:03:30 +08:00
|
|
|
git clone https://gitee.com/lijiahangmax/orion-visor
|
2024-02-27 16:39:49 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
2. 初始化数据库
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
# 执行脚本
|
2024-05-16 00:03:30 +08:00
|
|
|
orion-visor/sql/init-1-schema-databases.sql
|
|
|
|
|
orion-visor/sql/init-2-schema-tables.sql
|
|
|
|
|
orion-visor/sql/init-3-schema-quartz.sql
|
|
|
|
|
orion-visor/sql/init-4-data.sql
|
2024-02-27 16:39:49 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
3. 修改后端配置
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
# 修改配置文件 (mysql, redis, secret-key)
|
2024-05-16 00:03:30 +08:00
|
|
|
orion-visor/orion-visor-launch/src/main/resources/application-prod.yaml
|
2024-02-27 16:39:49 +08:00
|
|
|
|
|
|
|
|
# 进入代码目录
|
2024-05-16 00:03:30 +08:00
|
|
|
cd orion-visor
|
2024-02-27 16:39:49 +08:00
|
|
|
# 编译
|
|
|
|
|
mvn -U clean install -DskipTests
|
2024-03-02 13:22:22 +08:00
|
|
|
# 启动
|
2024-05-16 00:03:30 +08:00
|
|
|
com.orion.visor.launch.LaunchApplication
|
2024-02-27 16:39:49 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
4. 修改前端配置
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
# 进入代码目录
|
2024-05-16 00:03:30 +08:00
|
|
|
cd orion-visor/orion-visor-ui
|
2024-02-27 16:39:49 +08:00
|
|
|
# 下载 pnpm
|
|
|
|
|
npm i -g pnpm
|
|
|
|
|
# 下载依赖
|
|
|
|
|
pnpm i
|
|
|
|
|
# 运行
|
|
|
|
|
pnpm dev
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 测试访问
|
|
|
|
|
|
|
|
|
|
启动前端后会自动打开浏览器 输入
|
|
|
|
|
账号: `admin`
|
|
|
|
|
密码: `admin`
|
|
|
|
|
|
|
|
|
|
### 文档
|
|
|
|
|
|
|
|
|
|
文档只有在 `dev` 环境才可以访问
|
|
|
|
|
|
|
|
|
|
- swagger 文档 http://127.0.0.1:9200/doc.html
|
|
|
|
|
- druid console http://127.0.0.1:9200/druid/index.html
|
|
|
|
|
- actuator endpoint http://127.0.0.1:9200/actuator
|
|
|
|
|
- admin console http://127.0.0.1:9200/admin
|