https://github.com/mrdulin/node-grpc-cnode
A NodeJS gRPC service for CNode community.
https://github.com/mrdulin/node-grpc-cnode
grpc grpc-node node-js nodejs nodejs-grpc protobuf3 protocol-buffers typescript
Last synced: about 1 month ago
JSON representation
A NodeJS gRPC service for CNode community.
- Host: GitHub
- URL: https://github.com/mrdulin/node-grpc-cnode
- Owner: mrdulin
- License: mit
- Created: 2019-03-22T14:25:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T03:10:27.000Z (about 3 years ago)
- Last Synced: 2025-01-12T18:52:13.235Z (about 1 year ago)
- Topics: grpc, grpc-node, node-js, nodejs, nodejs-grpc, protobuf3, protocol-buffers, typescript
- Language: JavaScript
- Homepage:
- Size: 960 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-grpc-cnode

A Node gRPC server for [CNode](https://cnodejs.org) community built on the top of [RESTful API](https://cnodejs.org/api).
_This project is just for teaching, NOT production ready._
Features:
- TypeScript support
- gRPC Health check
- Integration and unit testings
Compile protocol buffers:
```bash
npm run protoc
```
Start the server for development:
```bash
npm run dev
```
Run unit test:
```bash
npm run test:unit
```
Run integration test:
```bash
npm run test:int
```
## TODOs
It seems `grpc-node` package doesn't support following features:
- server interceptor, see [issue#419](https://github.com/grpc/grpc-node/issues/419)
- server reflection, see [issue#79](https://github.com/grpc/grpc-node/issues/79)
- middleware, see [issuecomment-254670533](https://github.com/grpc/grpc/issues/8394#issuecomment-254670533)
## References
- https://github.com/grpc/grpc-node
- https://www.npmjs.com/package/@grpc/proto-loader
- https://github.com/grpc/grpc/tree/master/examples/node
- https://developers.google.com/protocol-buffers/docs/proto3
- https://grpc.io/docs/quickstart/node.html