Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cool-team-official/cool-admin-go
https://github.com/cool-team-official/cool-admin-go
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cool-team-official/cool-admin-go
- Owner: cool-team-official
- License: mit
- Created: 2022-03-28T04:51:18.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-07T11:14:55.000Z (5 months ago)
- Last Synced: 2024-06-21T18:12:02.481Z (5 months ago)
- Language: Go
- Size: 91.7 MB
- Stars: 106
- Watchers: 4
- Forks: 36
- Open Issues: 10
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# CoolAdminGo
[![Go Reference](https://pkg.go.dev/badge/github.com/cool-team-official/cool-admin-go.svg)](https://pkg.go.dev/github.com/cool-team-official/cool-admin-go)
[![Build Release](https://github.com/cool-team-official/cool-admin-go/actions/workflows/release.yml/badge.svg)](https://github.com/cool-team-official/cool-admin-go/actions/workflows/release.yml)
[![Goproxy.cn](https://goproxy.cn/stats/github.com/cool-team-official/cool-admin-go/badges/download-count.svg)](https://goproxy.cn)CoolAdmin 的 Go 版本后端
- [docs](https://cool-team-official.github.io/cool-admin-go/) - 开发文档
- [changelog](docs/changelog.md) - 更新日志
- [github](https://github.com/cool-team-official/cool-admin-go) - cool-admin-go 仓库
- [release](https://github.com/cool-team-official/cool-admin-go/releases) - cool-tools 编译版本下载
- [issues](https://github.com/cool-team-official/cool-admin-go/issues) - 问答区
- [CoolAdmin](https://cool-js.com) - CoolAdmin 官网
- [GoFrame](https://goframe.org) - GoFrame 官网## TODO
- [x] 基础 CURD 结构搭建
- [x] model 层快速生成
- [x] service 层快速生成
- [x] controller 层快速生成
- [x] 中间件错误状态及错误码与 node 版本统一
- [x] 全局错误码统一
- [x] controller 层接口输入与 node 版本统一
- [x] 优化开发工具安装体验
- [x] service 层逻辑补全
- [x] base 模块逻辑补全 感谢 @imhuso
- [ ] 开发文档编制
- [ ] 数据库驱动补充
- [ ] 文件上传驱动补充
- [ ] 其他项目需求## 使用说明
首先下载安装 Go 语言环境,如果没有安装,请自行安装,如果已经安装,请自行配置环境变量
### 1.安装`cool-tools`开发工具
从 github 下载
```bash
wget -O cool-tools https://github.com/cool-team-official/cool-admin-go/releases/latest/download/cool-tools_$(go env GOOS)_$(go env GOARCH) && chmod +x cool-tools && ./cool-tools install && rm ./cool-tools
```如果到直接下载速度过慢,可使用`pgit`加速安装
```bash
pgit wget -O cool-tools https://github.com/cool-team-official/cool-admin-go/releases/latest/download/cool-tools_$(go env GOOS)_$(go env GOARCH) && chmod +x cool-tools && ./cool-tools install && rm ./cool-tools
```通过`go install`安装
```bash
go install github.com/cool-team-official/cool-admin-go/cool-tools@latest
```验证
```bash
cool-tools version
```### 2.创建新项目
```bash
cool-tools init hello-world
```### 3.安装依赖
```bash
cd hellow-world
go mod tidy
```### 5.启动开发环境
```bash
cool-tools run main.go
```enjoy it!