Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 877 Bytes

scaffolding.md

File metadata and controls

32 lines (24 loc) · 877 Bytes

Scaffolding

setup new golang project workspace from scratch using go-micro cli

mkdir -p ~/Developer/Work/go/micro-starter-kit
cd ~/Developer/Work/go/micro-starter-kit
go mod init github.com/xmlking/micro-starter-kit
mkdir service api fnc

# scaffold modules
micro new --fqdn mkit.service.account --type srv --alias account service/account
micro new --fqdn mkit.service.greeter --type srv --alias greeter service/greeter
micro new --fqdn mkit.service.emailer --type srv --alias emailer service/emailer
# micro new --fqdn="mkit.service.emailer" --type="service"  \
# --alias="emailer"  --plugin=client/selector=static:broker=nats service/emailer
micro new --fqdn mkit.service.recorder --type srv --alias recorder service/recorder

Setup project

GitFlow setup

git flow init -d

CHANGELOG generator setup

git-chglog --init