https://github.com/mosuka/bayard-proto
https://github.com/mosuka/bayard-proto
buffers protocol
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mosuka/bayard-proto
- Owner: mosuka
- License: mit
- Created: 2020-02-27T04:31:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-07T13:58:40.000Z (over 4 years ago)
- Last Synced: 2025-03-01T13:04:45.594Z (3 months ago)
- Topics: buffers, protocol
- Language: JavaScript
- Size: 213 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# bayard-proto
[](https://gitter.im/bayard-search/bayard?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://opensource.org/licenses/MIT)Bayard is a full-text search and indexing server written in [Rust](https://www.rust-lang.org/) built on top of [Tantivy](https://github.com/tantivy-search/tantivy) that implements [Raft Consensus Algorithm](https://raft.github.io/) and [gRPC](https://grpc.io/).
Achieves consensus across all the nodes, ensures every change made to the system is made to a quorum of nodes.
Bayard makes easy for programmers to develop search applications with advanced features and high availability.## Requirement
The following products are required to build:
- Rust >= 1.39.0
- make >= 3.81
- protoc >= 3.9.2### Install protoc-gen-rust
```shell script
$ cargo install protobuf-codegen
$ cargo install grpcio-compiler --version=0.4.3
```### Install protoc-gen-grpc-web
```shell script
$ curl -o /usr/local/bin/protoc-gen-grpc-web -L https://github.com/grpc/grpc-web/releases/download/1.2.1/protoc-gen-grpc-web-1.2.1-darwin-x86_64
$ chmod +x /usr/local/bin/protoc-gen-grpc-web
```
ls
### Install protoc-gen-go```shell script
$ go get -u github.com/golang/protobuf/protoc-gen-go
```## Generate code
### Rust
```shell script
$ ./protoc_rust.sh
```### gRPC-Web (JavaScript)
```shell script
$ ./protoc_grpc-web.sh
```### Go
```shell script
$ ./protoc_go.sh
```## Build
```
% make build
```