mirror of
https://github.com/usual2970/certimate.git
synced 2025-10-05 05:54:53 +00:00
chore: config gofumpt
This commit is contained in:
@@ -28,6 +28,7 @@ git clone https://github.com/your_username/certimate.git
|
||||
|
||||
1. 进入根目录
|
||||
2. 运行以下命令启动服务:
|
||||
|
||||
```bash
|
||||
go run main.go serve
|
||||
```
|
||||
@@ -36,11 +37,12 @@ git clone https://github.com/your_username/certimate.git
|
||||
|
||||
**在向主仓库提交 PR 之前,建议你:**
|
||||
|
||||
- 使用 [gofumpt](https://github.com/mvdan/gofumpt) 对你的代码进行格式化。
|
||||
|
||||
- 为你的改动添加单元测试或集成测试(Certimate 使用 Go 的标准 `testing` 包)。你可以通过以下命令运行测试(在项目根目录下):
|
||||
|
||||
```bash
|
||||
go test ./...
|
||||
|
||||
```
|
||||
|
||||
## 修改管理页面 (Admin UI)
|
||||
@@ -49,9 +51,12 @@ Certimate 的管理页面是一个基于 React 和 Vite 构建的单页应用(
|
||||
|
||||
要启动 Admin UI:
|
||||
|
||||
1. 进入 `ui` 项目目录
|
||||
2. 运行 `npm install` 安装依赖
|
||||
1. 进入 `ui` 项目目录。
|
||||
|
||||
2. 运行 `npm install` 安装依赖。
|
||||
|
||||
3. 启动 Vite 开发服务器:
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
Reference in New Issue
Block a user