Giter Site home page Giter Site logo

biz-demo's People

Contributors

baiyutang avatar bodhisatan avatar coderpoet avatar dependabot[bot] avatar fgyffff avatar guangmingluo avatar i6u avatar justlorain avatar l2nce avatar li-jin-gou avatar ppzqh avatar rogerogers avatar skyenought avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

biz-demo's Issues

[Question] hz update failed in easy_note

Describe the bug

when run these code under easy_note, hz update failed (hz version v0.5.1)

init_api:
hz new -mod github.com/cloudwego/biz-demo/easy_note -idl ../../idl/api.thrift
update_api:
hz update -mod github.com/cloudwego/biz-demo/easy_note -idl ../../idl/api.thrift

Accoding the doc, there no mod/module param in hz update

To Reproduce

Steps to reproduce the behavior:

  1. go install github.com/cloudwego/hertz/cmd/hz@latest
  2. cd biz-demo/easy_note/cmd/api
  3. make update_api
  4. See error
hz update -mod github.com/cloudwego/biz-demo/easy_note -idl ../../idl/api.thrift
Incorrect Usage: flag provided but not defined: -mod

NAME:
   hz update - Update an existing Hertz project

USAGE:
   hz update command [command options] [arguments...]

COMMANDS:
   help, h  Shows a list of commands or help for one command
   help, h  Shows a list of commands or help for one command

OPTIONS:
   --idl value [ --idl value ]                                            Specify the IDL file path. (.thrift or .proto)
   --out_dir value                                                        Specify the project path.
   --handler_dir value                                                    Specify the handler path.
   --model_dir value                                                      Specify the model path.
   --client_dir value                                                     Specify the client path. If not specified, IDL generated path is used for 'client' command; no client code is generated for 'new' co
mmand
   --proto_path value, -I value [ --proto_path value, -I value ]          Add an IDL search path for includes. (Valid only if idl is protobuf)
   --thriftgo value, -t value [ --thriftgo value, -t value ]              Specify arguments for the thriftgo. ({flag}={value})
   --protoc value, -p value [ --protoc value, -p value ]                  Specify arguments for the protoc. ({flag}={value})
   --option_package value, -P value [ --option_package value, -P value ]  Specify the package path. ({include_path}={import_path})
   --no_recurse                                                           Generate master model only. (default: false)
   --json_enumstr                                                         Use string instead of num for json enums when idl is thrift. (default: false)
   --unset_omitempty                                                      Remove 'omitempty' tag for generated struct. (default: false)
   --pb_camel_json_tag                                                    Convert Name style for json tag to camel(Only works protobuf). (default: false)
   --snake_tag                                                            Use snake_case style naming for tags. (Only works for 'form', 'query', 'json') (default: false)
   --exclude_file value, -E value [ --exclude_file value, -E value ]      Specify the files that do not need to be updated.
   --customize_package value                                              Specify the package template. ({{Template Profile}}:)
   --handler_by_method                                                    Generate a separate handler file for each method. (default: false)
   --protoc-plugins value [ --protoc-plugins value ]                      Specify plugins for the protoc. ({plugin_name}:{options}:{out_dir})
   --thrift-plugins value [ --thrift-plugins value ]                      Specify plugins for the thriftgo. ({plugin_name}:{options})
   --help, -h                                                             show help (default: false)
[ERROR]/home/liuxiao/workspace/golang/pkg/mod/github.com/cloudwego/hertz/cmd/[email protected]/main.go:42: flag provided but not defined: -mod

Expected behavior

This parameter may exist in previous hertz versions, now how to handle the go module problem in the current version of hertz?

For example, code structure like this, if my project is not under GOPATH, how can i use hz update to change api interface when interface changed.

I'm newbie from hertz, looking forward to your reply, thx.

easy_note
    cmd
        api   -->  hertz
        note  -->  kitex
        user  -->  kitex
    idl
    kitex_gen
    ...
go.mod

Screenshots

No.

Kitex version:

No.

Environment:

[liuxiao@dev easy_note]$ go env
GO111MODULE="on"                       
GOARCH="amd64"                         
GOBIN=""                               
GOCACHE="/home/liuxiao/.cache/go-build"
GOENV="/home/liuxiao/.config/go/env"   
GOEXE=""                               
GOEXPERIMENT=""                        
GOFLAGS=""                             
GOHOSTARCH="amd64"                     
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/liuxiao/workspace/golang/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/liuxiao/workspace/golang"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/home/liuxiao/go/go1.18.10"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/home/liuxiao/go/go1.18.10/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.10"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/liuxiao/Code/GoProjects/biz-demo/easy_note/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2861411109=/tmp/go-build -gno-record-gcc-switches"

Additional context

No.

Optimize: improve open-payment-platform to be a production-ready API gateway

Is your feature request related to a problem? Please describe.

Make this API gateway production ready.

Describe the solution you'd like

  • Improve the performance of this API gateway, e.g. avoiding unecessary bindAndValidate and marshall
  • Dynamic update of the IDL
  • CURD API for managing IDL

Optional

  • API management
  • Traffic monitor (log, trace, metrics)
  • Rate Limit
  • Load Balance

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Typo in the command line for Query note in the ReadMe for EasyNote

Describe the bug

The command line should be "go run main.go -action queryNote" rather than “ "go run main.go -action queryNoten' "

To Reproduce

  1. Go to ReadMe of the EasyNote
  2. Scroll down to 'Query Note'
  3. See error

Screenshots
Screenshot 2023-06-06 at 13 37 23

Also, I would deeply appreciate if I could trouble the author to include a few lines in the ReadMe to briefly explain how externals could interact with the EasyNote App, for example, how to use postman to send HTTP request with the right format.

biz-demo bookinfo docker image pull failed

$ docker pull cr-cn-beijing.volces.com/cloudwego-demo/bookinfo:v1.0
Error response from daemon: toomanyrequests: remaining traffic quota is not enough to download this layer for current month

Error when pull cloudwego-demo image, is there a image pull quota limit?

gomall项目中makefile29-35行疑问

PHONY: gen-checkout-client
gen-checkout-client:
@cd app/frontend && cwgo client -I ../../idl --type RPC --service checkout --module github.com/cloudwego/biz-demo/gomall/app/frontend --idl ../../idl/checkout.proto

.PHONY: gen-order-client
gen-order-client:
@cd app/frontend && cwgo client -I ../../idl --type RPC --service order --module github.com/cloudwego/biz-demo/gomall/app/frontend --idl ../../idl/order.proto
前面21-23行已经生成了说有RPC的client,为什么这里还要在frontend里面生成RPC 的client?并且没有看到生成的文件

Nacos server is not running

Describe the bug

Could not get the expected output as described in the Readme of the Open-payment-platform when following its instructions precisely

To Reproduce

Follow the ReadMe instruction:
"## How to Run

root directory is open-payment-platform.

Prepare

  • start docker env with mysql and nacos
# root directory
make start

Gateway

  • start http gateway
# root directory
make gateway

Payment server

run this server,you should wait for the Nacos server is running.
How to check the Nacos? you can open the link http://127.0.0.1:8848/nacos/index.html#/login
"
and http://127.0.0.1:8848/nacos/index.html#/login could not be opened

Expected behavior

Naco server should be running, so that the payment servers can run

Screenshots
Command line output when starting the RPC servers:
Screenshot 2023-06-06 at 17 53 50

Command line output from the HTTP server:
Screenshot 2023-06-06 at 17 52 53

Failure to open the webpage to verify that Nacos server is running:
Screenshot 2023-06-06 at 17 55 28

Kitex version:

v0.5.2

Environment:

The output of go env:
GO111MODULE="on"
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/wangyiwen/Library/Caches/go-build"
GOENV="/Users/wangyiwen/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/wangyiwen/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/wangyiwen/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.20.4"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/wangyiwen/go/src/open-payment-platform/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/ps/hkhsdf0j5ql98hgzk334whzc0000gn/T/go-build2437649674=/tmp/go-build -gno-record-gcc-switches -fno-common"

Additional context

The problem persist after running "go get github.com/hertz-contrib/registry/nacos"

How to use wire

Hello:
想问下,咱们这个 wire、wire_gen中的代码是根据啥生成的么?还是一点点手写的?包括ratings、reviews等服务关于wire这块的。请说下,谢谢。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.