Skip to content

lizhiqpxv/phanes

 
 

Repository files navigation

Phanes

Quick Start

Version The version of Phanes must be v0.1.35 or above.

Environment Requirements These environments and tools must be installed properly.

go protoc protoc-gen-go

The GO111MODULE should be enabled.

go env -w GO111MODULE=on

If you faced with network problem (especially you are in China Mainland), please setup GOPROXY

Install Phanes tool You can do it either way.

  1. go install installation
go install github.com/phanes-o/phanes@latest
  1. Source code compilation and installation
git clone https://github.com/phanes-o/phanes
cd phanes
make build

Project Creation

create project's layout

phanes new helloworld
cd helloworld

pull dependencies

go mod download 

Compilation and Running

generate all codes of proto or wire etc.

go generate ./...

generate proto

phanes proto client hello.proto
phanes proto server hello.proto -t internal/service

run the application

phanes run

Project Layout phanes CLI always pull the layout project from GitHub for project creation. The layout project is:

Phanes Layout

About

phanes is a microservice tool kit witch include code generate, project create.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%