hertz-admin

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

README

🌱1 基本介绍

1.1 项目简介

基于hertz的后台管理框架

🚀2 使用说明

直接打包

go build cmd/ha/main.go

docker打包

使用./script/docker/Dockerfile打包 docker build -f ./build/docker/Dockerfile -t ha:latest .

基于gitlab的自动打包

可参考.gitlab-ci.yml

基于KubeSphere的DevOps

可参考./deployments/jenkins和./deployments/k8s 可实现自动打包并部署至k8s

⚡️3 Makefile

运行程序
make run
直接打包为可执行程序
make build
打包为docker并导出镜像
make docker

🎉4 其他说明

4.1 生成swag
swag init -g ./cmd/ha/main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
ha
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL