@vendit-dev/mali
v0.47.2
Published
Minimalistic gRPC microservice framework
Downloads
3
Readme
A minimalistic gRPC microservice framework.
Installation
Install module and required peer dependencies.
$ npm install mali @grpc/grpc-js @grpc/proto-loader
Example
const Mali = require('mali')
function sayHello (ctx) {
ctx.res = { message: `Hello ${ctx.req.name}` }
}
function main () {
const app = new Mali('helloworld.proto')
app.use({ sayHello })
app.start('0.0.0.0:50051')
}
Documentation
Full documentation.
License
Apache-2.0