A minimalistic gRPC microservice framework.
Install module and required peer dependencies.
$ npm install mali grpc @grpc/proto-loader
const Mali = require('mali')
async function sayHello (ctx) {
ctx.res = { message: 'Hello '.concat(ctx.req.name) }
}
function main () {
const app = new Mali('helloworld.proto')
app.use({ sayHello })
app.start('127.0.0.1:50051')
}
Full documentation.
Apache-2.0