mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-13 17:47:51 +00:00
chore(deps): bump foundation to v0.3.0
This commit is contained in:
14
README.md
14
README.md
@@ -95,6 +95,16 @@ auth:
|
||||
|
||||
### 本地运行
|
||||
|
||||
运行前需要准备依赖(Postgres + Redis),否则会出现连接错误
|
||||
|
||||
建议先启动基础依赖:
|
||||
|
||||
```bash
|
||||
docker compose up -d postgres redis
|
||||
```
|
||||
|
||||
然后在本地设置必要环境变量(可基于 `.env.example`):
|
||||
|
||||
```bash
|
||||
go run cmd/server/main.go
|
||||
```
|
||||
@@ -135,7 +145,7 @@ docker run -p 8080:8080 --env-file .env ez-api
|
||||
go work init
|
||||
go work use ./ez-api ./balancer ./foundation
|
||||
```
|
||||
如果你只使用已发布的 `github.com/ez-api/foundation v0.1.0`(或更高 tag),则不需要 `go.work`。
|
||||
如果你只使用已发布的 `github.com/ez-api/foundation v0.3.0`(或更高 tag),则不需要 `go.work`。
|
||||
|
||||
### 集成测试
|
||||
|
||||
@@ -165,7 +175,7 @@ cd ez-api
|
||||
## 依赖约定
|
||||
|
||||
- Control Plane(ez-api)与 Data Plane(balancer)共享一部分“协议约定/基础设施”代码(JSON、日志、provider type 规则),统一沉淀在 `github.com/ez-api/foundation`。
|
||||
- 本仓库的 `go.mod` 需要依赖一个可用的 `foundation` 版本:发布后建议锁定到 `v0.1.0`(或更高 tag);本地联调可使用 `go.work`(见下文)。
|
||||
- 本仓库的 `go.mod` 需要依赖一个可用的 `foundation` 版本:发布后建议锁定到 `v0.3.0`(或更高 tag);本地联调可使用 `go.work`(见下文)。
|
||||
|
||||
## 设计决策
|
||||
|
||||
|
||||
Reference in New Issue
Block a user