Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devsu/condor-framework
Framework for building GRPC services in Node JS. Include middleware, and more.
https://github.com/devsu/condor-framework
condor-framework grpc grpc-framework grpc-service middleware node nodejs
Last synced: 2 months ago
JSON representation
Framework for building GRPC services in Node JS. Include middleware, and more.
- Host: GitHub
- URL: https://github.com/devsu/condor-framework
- Owner: devsu
- License: mit
- Created: 2016-12-29T21:41:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-24T16:50:18.000Z (over 6 years ago)
- Last Synced: 2024-08-09T22:51:48.795Z (5 months ago)
- Topics: condor-framework, grpc, grpc-framework, grpc-service, middleware, node, nodejs
- Language: JavaScript
- Homepage:
- Size: 811 KB
- Stars: 54
- Watchers: 11
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Condor GRPC Framework for Node
Minimalist, fast framework for building GRPC services in Node JS. It's like **express** for **GRPC**.
[![Build Status](https://travis-ci.org/devsu/condor-framework.svg?branch=master)](https://travis-ci.org/devsu/condor-framework)
[![Coverage Status](https://coveralls.io/repos/github/devsu/condor-framework/badge.svg?branch=master)](https://coveralls.io/github/devsu/condor-framework?branch=master)## 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.~ **Unmaintained** We stopped using GRPC (probably we'll take a look again in the future, when its whole ecosystem gets more mature).
## Highlights
- Built on top of Google's [grpc](https://www.npmjs.com/package/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
```js
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
```bash
npm install --save condor-framework
```## Links
- [Website](http://condorjs.com)
- [Documentation](http://condorjs.com/documentation)## Related Modules and Middleware
See the documentation for [related modules and middleware](http://condorjs.com/related-modules-and-middleware).
## License and Credits
MIT License. Copyright 2017 by **Devsu LLC**, the [Node GRPC Experts](https://devsu.com)