# zeus-admin **Repository Path**: ldevopsgo/zeus-admin ## Basic Information - **Project Name**: zeus-admin - **Description**: Zeus基于Golang Gin +casbin,致力于做企业统一权限&账号中心管理系统。包含账号管理,数据权限,功能权限,应用管理,多数据库适配,可docker 一键运行。社区活跃,版本迭代快,加群免费技术支持。 - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://bullteam.github.io - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 24 - **Created**: 2022-03-10 - **Last Updated**: 2022-03-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
### 快速开始
> 该操作在linux 下生效,需要golang 1.11+ & node v9 + 编译环境,设置git clone 权限
> 前后统一访问入口部署(前后统一)
````
git clone git@github.com:bullteam/zeus-admin.git
export GOPROXY=https://goproxy.cn
export GO111MODULE=on
#后端编译
go build -o zeus
#前端编译
cd pkg/webui
npm install
npm run build:work
cd ~/zeus-admin
export MYSQL_USERNAME=root
export MYSQL_PASSWORD=123456
export MYSQL_HOST=127.0.0.1
export MYSQL_DB=zeus
export MYSQL_PORT=3306
export REDIS_HOST=127.0.0.1
export REDIS_PORT=6379
export REDIS_PASSWORD=""
./zeus server -c ./config/in-local.yaml
````
> 前后不同入口部署(前后分离)
````
git clone git@github.com:bullteam/zeus-admin.git
export GOPROXY=https://goproxy.cn
export GO111MODULE=on
#后端编译
go build -o zeus
#前端编译
cd pkg/webui
npm install
#正常情况下,会生成dist目录,可自己部署web服务器(如nginx),提供前端服务
npm run build:prod
cd ~/zeus-admin
export MYSQL_USERNAME=root
export MYSQL_PASSWORD=123456
export MYSQL_HOST=127.0.0.1
export MYSQL_DB=zeus
export MYSQL_PORT=3306
export REDIS_HOST=127.0.0.1
export REDIS_PORT=6379
export REDIS_PASSWORD=""
#修改in-local.yamln内部的project.merge为false,然后再启动
./zeus server -c ./config/in-local.yaml --cors=true
````
# 数据移值
```bash
# 执行 sql 语句
mysql> source ./scripts/init.sql;
```
## Git 工作流
[Git 协作工作流](docs/zh/CONTRIBUTING.md)
# openssl jwt 密钥生成
[openssl jwt 密钥](docs/zh/GenrsaKey.md)
# 演示 Demo
* [auth.bullteam.cn](http://auth.bullteam.cn) 账号 admin 密码 123456 (为了防止恶意使用、系统将不定时重置,请各位客官尽情享用)
* [client 演示源码:crawlnovel]([http](https://github.com/bullteam/crawlnovel)) [演示地址:http://crawlnovel.bullteam.cn/admin](http://crawlnovel.bullteam.cn/admin)
# 接入权限系统 client demo
* [python-client](https://github.com/bullteam/zeusclient-python) 已提供
* [php-client](https://github.com/bullteam/zeusclient-php) 已提供
* [java-client](https://github.com/bullteam/zeusclient-java) 已提供
* [go-client](https://github.com/bullteam/zeusclient-go) 暂缺
## 相关截图
## 开发者
* [wutongci](http://github.com/wutongci)
* [funlake](https://github.com/funlake)
* [Hyman](https://github.com/zhengcog)
* [severHo](https://github.com/qq330967496)
* [hodor-cn](https://github.com/hodor-cn)
更多请进入我们的官网了解我们 [公牛开源战队](http://www.bullteam.cn)
## 贡献代码
非常欢迎优秀的开发者来贡献Zeus。在提Pull Request之前,请首先阅读源码,了解原理和架构。如果不懂的可以加他的微信 `wutongci` 注明 `Zeus`。
## 社区
如果您觉得 Zeus 对您有帮助,请扫描下方群二维码,如果群满,请加微信 `wutongci` 并注明`zeus 开源交流`,他会将你拉入群。