Skip to content

GStones/moke-layout

Repository files navigation

Moke Project Template

Go Report Card Go Reference Release

How to run

  • 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/client/main.go 
  • run client:

     # help
     ./client.exe help
      # run grpc client
     ./client.exe grpc
      # run tcp client
     ./client.exe tcp

    tips: http client use Postman to connect localhost:8081.

  • run load test:

    • install k6
    • run
          k6 run ./tests/demo/demo.js
  • proto generate

      buf generate