https://github.com/colynn/pontus
运维后台系统 基础框架 (Jwt验证/LDAP登录/用户、角色、菜单管理) // 成为一个被重新定义的运维系统
https://github.com/colynn/pontus
cmdb devops go-admin go-admin-vue scaffold
Last synced: 10 months ago
JSON representation
运维后台系统 基础框架 (Jwt验证/LDAP登录/用户、角色、菜单管理) // 成为一个被重新定义的运维系统
- Host: GitHub
- URL: https://github.com/colynn/pontus
- Owner: colynn
- Created: 2022-11-22T05:55:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-23T12:16:18.000Z (almost 3 years ago)
- Last Synced: 2025-03-27T19:54:28.709Z (11 months ago)
- Topics: cmdb, devops, go-admin, go-admin-vue, scaffold
- Language: Go
- Homepage:
- Size: 6.91 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pontus
海神-蓬托斯
## Prerequisites
* `go` 1.18+
* `make`
## How to develop
### 1. 安装依赖
> 项目使用 go mod的方式来管理依赖包
```sh
go mod vendor
```
### 2. 确认配置条件
* 默认会使用 ```config/local.yaml```, 请基于`dev.yaml`自行拷贝,依赖环境变量来获取不同配置文件
* __注意__: 本地测试时,根据需求修改`db`等相关配置
### 3. 启动-本地
```sh
export ENV=local
make run
```
### 4. 启动-生产环境
```sh
export ENV=prod
make run-prod
```
## Unit Test
### 单个包运行单元测试
```sh
go test -v [pkg-name] // eg, go test -v newops/pkg/mail
```