mali

A minimalistic gRPC microservice framework for Node.js

Github星跟蹤圖

Mali

A minimalistic gRPC microservice framework.

npm version
build status
coverage status
JavaScript Style Guide
License
chat on gitter
Donate
Buy me a coffee

Installation

Install module and required peer dependencies.

$ npm install mali grpc @grpc/proto-loader

Example

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')
}

Documentation

Full documentation.

License

Apache-2.0

主要指標

概覽
名稱與所有者malijs/mali
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證Apache License 2.0
所有者活动
創建於2016-12-27 01:44:16
推送於2024-05-15 21:33:45
最后一次提交2024-05-15 21:48:16
發布數64
最新版本名稱v0.47.1 (發布於 )
第一版名稱v0.0.2 (發布於 2016-12-27 16:27:42)
用户参与
星數888
關注者數14
派生數60
提交數499
已啟用問題?
問題數68
打開的問題數11
拉請求數174
打開的拉請求數4
關閉的拉請求數131
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?