Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malijs/mali
A minimalistic gRPC microservice framework for Node.js
https://github.com/malijs/mali
grpc hacktoberfest mali node
Last synced: 3 months ago
JSON representation
A minimalistic gRPC microservice framework for Node.js
- Host: GitHub
- URL: https://github.com/malijs/mali
- Owner: malijs
- License: apache-2.0
- Created: 2016-12-27T01:44:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-15T21:33:45.000Z (6 months ago)
- Last Synced: 2024-05-19T09:15:11.736Z (6 months ago)
- Topics: grpc, hacktoberfest, mali, node
- Language: JavaScript
- Homepage: https://mali.js.org
- Size: 2.04 MB
- Stars: 883
- Watchers: 16
- Forks: 60
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-grpc - Mali - A minimalistic gRPC microservice framework for Node.js (Language-Specific / Node.js)
README
# [![Mali](https://raw.githubusercontent.com/malijs/mali/master/mali-logo.png)](https://malijs.github.io)
**A minimalistic [gRPC](http://www.grpc.io) microservice framework.**
[![npm version](https://img.shields.io/npm/v/mali.svg?style=flat-square)](https://www.npmjs.com/package/mali)
[![build status](https://github.com/malijs/mali/workflows/Node%20CI/badge.svg)](https://github.com/malijs/mali/actions)
[![coverage status](https://img.shields.io/coveralls/github/malijs/mali.svg?style=flat-square)](https://coveralls.io/github/malijs/mali)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](https://standardjs.com)
[![License](https://img.shields.io/github/license/malijs/mali.svg?style=flat-square)](https://raw.githubusercontent.com/malijs/mali/master/LICENSE)
[![chat on gitter](https://img.shields.io/gitter/room/malijs/Lobby.svg?style=flat-square)](https://gitter.im/malijs/Lobby)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg?style=flat-square)](https://www.paypal.me/bojandj)
[![Buy me a coffee](https://img.shields.io/badge/buy%20me-a%20coffee-orange.svg?style=flat-square)](https://www.buymeacoffee.com/bojand)## Installation
Install module and required peer dependencies.
```
$ npm install mali @grpc/grpc-js @grpc/proto-loader
```## Example
```js
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](https://mali.js.org).
## License
Apache-2.0