Skip to content
A minimalistic gRPC microservice framework for Node.js
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
lib
test Create Node CI test workflow (#140) Oct 18, 2019
.gitignore Initial commit Dec 27, 2016
.npmignore lodash improvements and update dependencies (#12) Aug 13, 2017
API.md
LICENSE
README.md Update readme Oct 18, 2019
api2.md Update documentataion for app.silent Jun 4, 2019
fixdocs
index.d.ts
mali-logo.png
package-lock.json
package.json

README.md

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

You can’t perform that action at this time.