Minimalist, fast framework for building GRPC services in Node JS. It's like express for GRPC.
Condor is working, but it's in ALPHA stage. We're using it to build a large system that will be in production soon.Unmaintained We stopped using GRPC (probably we'll take a look again in the future, when its whole ecosystem gets more mature).
- Built on top of Google's grpc module
- Focus on simplicity and high performance
- Fully covered by tests
- Promise based, which means no callbacks
- Written using, and design for ES6
constCondor=require('condor-framework');classGreeter{sayHello(ctx){return{'greeting': 'Hello '+ctx.req.name};}}constlogger=(ctx,next)=>{console.log('Request:',ctx.req);returnnext();};constoptions={'listen': '0.0.0.0:50051','rootProtoPath': './protos',};constapp=newCondor(options).add('myapp/greeter.proto','GreeterService',newGreeter()).use(logger).start();For this to work, you should have your proto file at ./protos/myapp/greeter.proto.
npm install --save condor-frameworkSee the documentation for related modules and middleware.
MIT License. Copyright 2017 by Devsu LLC, the Node GRPC Experts