# devcloud
**Repository Path**: hadf/devcloud
## Basic Information
- **Project Name**: devcloud
- **Description**: 脚手架用户中心
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2024-11-24
- **Last Updated**: 2025-07-23
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Go Easy Admin
## 项目介绍
`devcloud`是一个非常简单的`gin+gorm`脚手架,非常适合学习完`golang`基础的同学来进行练习使用。其中角色、权限都已经设计好,我们只需要关注业务接口即可。
## 目录结构
```bash
devcloud
待补充
```
## 中间件casbin
```shell
go get github.com/casbin/gorm-adapter/v3
go get github.com/casbin/casbin/v2
```
## 快速开始
### 拉取代码
```bash
git clone https://github.com/kubesre/devcloud.git`
``
### 修改配置文件
mv config-example.yaml config.yaml
```bash
cat config.yaml
server:
port: 8899
address: 127.0.0.1
name: devcloud
# # 生产环境建议使用 release,debug:可以使用debug模式
model: release
adminUser: admin
adminPwd: 25285442ebc7d3a0c20047e01d341c31 # 密码为 123456
# 数据库配置
mysql:
DbHost: 127.0.0.1
DbPort: 3306
# 数据库名称 需要提前创建好
DbName: devcloud
DbUser: root
DbPwd: pwd@123456
MaxIdleConns: 10
MaxOpenConns: 100
# 是否开启debug,1 开启 0 关闭
ActiveDebug: 0
# 密码加密
aes:
key: devcloud
jwt:
realm: devcloud
# jwt加密因子
key: anruo
# jwt token过期时间 单位为小时
timeout: 100
# jwt token刷新时间 单位为小时
maxRefresh: 1
```
### 执行MySQL初始化脚本
script/*.sql
暂未补充完整
### 启动服务
```bash
go run main.go
```
```bash
admin/123456
INSERT INTO `devcloud`.`sys_user` (`id`, `created_at`, `updated_at`, `deleted_at`, `create_by`, `username`, `password`, `nick_name`, `avatar`, `email`, `phone`, `status`) VALUES (1, '2024-11-27 18:09:57.000', '2024-11-27 18:10:00.000', '2024-11-27 18:10:04.000', NULL, 'admin', '388510da649e07250cb476aca079c280', '系统用户', NULL, '56353485@qq.com', '15899866726', 1);
```