-
deploy infrastructure:
# add ./deployment/docker-compose/.env file to custom your environment docker compose -f ./deployment/docker-compose/infrastructure.yaml up -d
-
service:
go run ./cmd/demo/service/main.go
-
build client:
go build -o client.exe ./cmd/demo/client/main.go
-
run client:
# help ./client.exe help # run grpc client ./client.exe grpc # run tcp client ./client.exe tcp # run help to see more command options. and follow the tips to run.
tips: http client use Postman to connect
localhost:8081
. -
run load test:
- install k6
- run
k6 run ./tests/demo/demo.js
-
proto generate
- install buf
buf generate
gstones / moke-layout Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License