Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 2.14 KB

README.md

File metadata and controls

34 lines (20 loc) · 2.14 KB

awilix-groa

UNDER CONSTRUCTION, please come back later

CircleCI tested with jest Coverage Status semantic-release Commitizen friendly

Awilix helpers, router and scope-instanatiating middleware for groa. This does for groa and groa-router what awilix-koa does for koa and koa-router, i.e. enables grpc server development using middleware and dependency injection, with routing support.

Requirements

Requires Node v7.6+, as groa depends on async/await support.

Installation

npm install --save awilix-koa

Motivation

See the discussion in awilix-koa.

Differences vs. awilix-koa

This library mimics awilix-koa wherever possible, and it uses the same underlying awilix-router-core library.

The main difference is that grpc does not use verbs (i.e GET, POST, etc.) so the the verb-related builder methods and decorators are not supported. Instead, the builder supports an rpc method (builder pattern) and there is an @RPC decorator to declare rpc methods (decorator pattern).

Documentation

More detailed library documentation is here (in progress).