Giter Club home page Giter Club logo

condor-framework's Introduction

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

condor-framework's People

Contributors

c3s4r avatar jdgutierrez avatar estebanr92 avatar

Watchers

James Cloos avatar Jasper.Z avatar TRons avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.