Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce the protobuf practice which bali using #111

Open
JoshYuJump opened this issue May 21, 2022 · 1 comment
Open

Introduce the protobuf practice which bali using #111

JoshYuJump opened this issue May 21, 2022 · 1 comment
Milestone

Comments

@JoshYuJump
Copy link
Collaborator

JoshYuJump commented May 21, 2022

bali-cli(https://github.com/bali-framework/bali/) is based on the practice of protobuf, which comes from the best practice by Google results.

But we never tell the detail of it.

@JoshYuJump JoshYuJump added this to the v3.2 milestone May 21, 2022
@JoshYuJump JoshYuJump modified the milestones: v3.2.x, v4.0.x Oct 10, 2022
@hhstore
Copy link
Contributor

hhstore commented Sep 1, 2023

Generate PB files:

  • with go-task, use cmds below to generate pb files:
  • pb dir: app/proto.
  • all data layers are defined using protbuf.
  gen:
    cmds:
      - |
        python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. protos/*.proto
      - |
        python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. proto/api/v1/*.proto
    ignore_error: true

Project Structure:

  • like this:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@hhstore @JoshYuJump and others