2024-02-04 16:37:11 +08:00
|
|
|
|
# d2admin-service
|
|
|
|
|
|
2024-02-04 16:45:36 +08:00
|
|
|
|
#### Description
|
|
|
|
|
前端:https://gitee.com/d2-projects/d2-admin-start-kit
|
|
|
|
|
后端从零开始。无依赖Casbin,无二次封装,适合学习。
|
|
|
|
|
|
|
|
|
|
### 文档地址
|
|
|
|
|
```text
|
|
|
|
|
# gin
|
|
|
|
|
https://gin-gonic.com/docs/quickstart
|
|
|
|
|
# gorm
|
|
|
|
|
https://gorm.io/zh_CN/docs/index.html
|
|
|
|
|
```
|
|
|
|
|
### golang版本
|
|
|
|
|
```text
|
|
|
|
|
go1.21.5 darwin/amd64
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 安装依赖并启动
|
|
|
|
|
```bash
|
|
|
|
|
go mod tidy
|
|
|
|
|
go run main.go
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 构建
|
|
|
|
|
```bash
|
|
|
|
|
go build -o d2admin-service
|
|
|
|
|
```
|