moke-layout

module
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2024 License: MIT

README

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/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

      buf generate
    

Directories

Path Synopsis
api
gen/demo/api
Package pb is a reverse proxy.
Package pb is a reverse proxy.
cmd
internal
pkg
dfx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL