在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:beyond-tp开源软件地址:https://gitee.com/beyondstorage/beyond-tp开源软件介绍:beyond-tpbeyond-tp is a data migration service. This project is now under high development, please do not apply to production environment Contributor GuideYou are always welcome to act as a contributor to beyond-tp. Since beyond-tp is an application under BeyondStorage,you should follow the contributor guide of the community. Please feel free to submit issues, create a pull request, or just star this repo :) For more details, please refer to: https://beyondstorage.io/docs/general/contributor-guide Development RequirementprotobufBeyond-tp uses protobuf for RPC call and data serialization. So protobuf tools are needed when generate codefrom protoc
protoc-gen-go & protoc-gen-go-grpc
Install them using Go 1.16 or higher by running: go install google.golang.org/protobuf/cmd/protoc-gen-go@latestgo install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest This will install You can also specify a version number by replacing Since we develop beyond-tp with: ➜ ~ protoc --versionlibprotoc 3.15.7➜ ~ protoc-gen-go --versionprotoc-gen-go v1.25.0➜ ~ protoc-gen-go-grpc --versionprotoc-gen-go-grpc 1.1.0 So we recommend you to use these tools equal or higher than this. flutterBeyond-tp uses flutter to conduct frontend web pages. To install flutter, you can take flutter installation as a reference. Notice: For some network reason, you can also get help from https://flutter.cn/community/china. BuildBuild Binarymake build Run Build Frontend Pagesmake build-frontend Run Notice that beyond-tp uses flutter to build web pages,so please make sure flutter is well installed, and added in For more details, please run Generate Codemake generate Run Notice that beyond-tp uses protobuf tools to generate grpc code,so please make sure protobuf is well installed,and added in UsageStart a Server
beyondtp server --db /path/to/db --host localhost --port 7436 --rpc-port 7000 This command will start a beyond-tp server, including a web server, with local db indicated by Run Start a Staff
beyondtp staff --host localhost --manager localhost:7000 This command will start a beyond-tp staff connected to the manager Run What's moreWe support to use environment variable to replace flags. All the flags follow these rules:
If the same flag set by both environment variable and command flag, command flag will behigher priority than environment variable, for example: BEYONDTP_LOG_LEVEL=debug bin/beyondtp server --db badger --log-level=warn The final log level would be For more command usage, please run Useful links |
请发表评论