Skip to content

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

Notifications You must be signed in to change notification settings

phanes-o/phanes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Topics

Resources

Stars

Watchers

Forks

Languages