1.5.3 • Published 7 years ago

condor-framework v1.5.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Condor GRPC Framework for Node

Minimalist, fast framework for building GRPC services in Node JS. It's like express for GRPC.

Build Status Coverage Status

Status

Condor is working, but it's in ALPHA stage. We're using it to build a large system that will be in production soon.

Highlights

  • 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

How to use

const Condor = require('condor-framework');

class Greeter {
  sayHello(ctx) {
    return { 'greeting': 'Hello ' + ctx.req.name };
  }
}

const logger = (ctx, next) => {
  console.log('Request:', ctx.req);
  return next();
};

const options = {
  'listen': '0.0.0.0:50051',
  'rootProtoPath': './protos',
};

const app = new Condor(options)
  .add('myapp/greeter.proto', 'GreeterService', new Greeter())
  .use(logger)
  .start();

For this to work, you should have your proto file at ./protos/myapp/greeter.proto.

Installation

npm install --save condor-framework

Links

Related Modules and Middleware

See the documentation for related modules and middleware.

License and Credits

MIT License. Copyright 2017 by Devsu LLC, the Node GRPC Experts

1.5.3

7 years ago

1.5.2

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago