Megrez 为北斗之一的天权星,古称文曲星,作为博客项目的名字再适合不过了
click https://github.com/AlkaidChan/megrez/releases/download/0.1.0-alpha.1/megrez-windows-amd64.exe
$ ./megrez-windows-amd64.exe$ wget --no-check-certificate https://github.com/AlkaidChan/megrez/releases/download/0.1.0-alpha.1/megrez-darwin-amd64
$ chmod +x megrez-darwin-amd64
$ ./megrez-darwin-amd64$ wget --no-check-certificate https://github.com/AlkaidChan/megrez/releases/download/0.1.0-alpha.1/megrez-linux-amd64
$ chmod +x megrez-linux-amd64
$ ./megrez-linux-amd64$ docker run -it -d --name megrez -p 8080:8080 alkaidchen/megrez- Go >= 1.19
- Node.js(构建管理后台前端所需)
- Make(可选,用于自动化构建)
$ git clone --recurse-submodules https://github.com/megrez-dev/megrez.git
$ cd megrez
$ go mod tidy
$ go run main.go$ make admin支持 Linux / macOS / Windows(amd64 / arm64),产物输出到 build/ 目录:
$ make build-release$ make docker| 目标 | 说明 |
|---|---|
make tidy |
整理 Go 模块依赖 |
make admin |
构建前端管理界面 |
make docker |
构建 Docker 镜像 |
make docker-release |
构建并推送 Docker 镜像 |
make build-release |
多平台交叉编译(6 个目标) |



