Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

condor-framework

1.0.1 • Public • Published

Condor Framework

Minimalist, fast framework for building GRPC services in Node JS.

Build Status Coverage Status

Status: Alpha.

Highlights

  • 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(call) {
    return { 'greeting': 'Hello ' + call.request.name };
  }
}
 
const logger = (context, next) => {
  console.log('Request:', context.request);
  return next();
};
 
const app = new Condor()
  .addService('./protos/greeter.proto', 'myapp.Greeter', new Greeter())
  .use(logger)
  .start();

Installation

npm install --save condor-framework

Table of contents

Documentation

Install

npm i [email protected]

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar
  • avatar