awilix-groa

1.0.7 • Public • Published

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).

Readme

Keywords

Package Sidebar

Install

npm i awilix-groa

Weekly Downloads

0

Version

1.0.7

License

Apache-2.0

Unpacked Size

22.2 kB

Total Files

7

Last publish

Collaborators

  • galenwarren