Skip to content

polpo666/pzero

 
 

Repository files navigation

pzero

Fork of jzero, renamed for personal publishing and custom template development.

English | 简体中文

Overview

pzero is based on the go-zero framework and its goctl tooling. It initializes api / gateway / rpc projects and generates server or client code from descriptive files such as api, proto, and sql.

Current repository target:

  • Publish under github.com/polpo666/pzero
  • Use pzero as the CLI command and binary name
  • Keep the code generation and template system, so it can be customized later for your own internal project scaffolds
  • Leave the docs site out of this rename scope for now

Quick Start

go install github.com/polpo666/pzero/cmd/pzero@latest

pzero check
pzero new your_project
cd your_project
go mod tidy
go run main.go server

Docker

docker run --rm -v ${PWD}:/app ghcr.io/polpo666/pzero:latest new your_project

Templates

The built-in template system is preserved. You can later customize the templates under cmd/pzero/.template or host your own remote templates repository.

Repository

About

Automatically generate server and client framework code based on descriptive files (proto/api/sql)

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 76.9%
  • Go Template 18.8%
  • Smarty 4.1%
  • Dockerfile 0.2%