Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@

在生产环境部署项目,参见 [PatpatDeploy](https://github.com/JavaEE-PatPatOnline/PatpatDeploy)。

在本地运行项目,同样需要先在服务器或本地配置好 MySQL 和 RabbitMQ,在 IntelliJ IDEA 中创建运行配置,添加命令行参数 `--spring.profiles.active=dev`,并添加如下环境变量。
在本地运行项目,首先需要克隆并构建项目。

```bash
# 克隆仓库
git clone https://github.com/JavaEE-PatPatOnline/PatBoot.git
cd PatBoot

# 使用 Maven 构建项目
mvn clean install
```

构建完成后,需要在服务器或本地配置好 MySQL 和 RabbitMQ,在 IntelliJ IDEA 中创建运行配置,添加命令行参数 `--spring.profiles.active=dev`,并添加如下环境变量。

- MySQL
- `MYSQL_HOST`: The host of the MySQL server
Expand Down Expand Up @@ -41,4 +52,4 @@

## 贡献代码

如果你想让 PatBoot 继续运行下去,欢迎加入我们维护该项目,具体参考 [CONTRIBUTING.md](CONTRIBUTING.md)。
如果你想让 PatBoot 继续运行下去,欢迎加入我们维护该项目,具体参考 [CONTRIBUTING.md](CONTRIBUTING.md)。