/matrixes-simple

Demo for protoc-gen-grpc,matrixes-lib,matrixes-cli

Primary LanguageJavaScript

matrixes-simple

gRpc Server Simple for protoc-gen-grpc and matrixes-lib.

Install

// install npm modules
npm install

gRpc Test

// start gRpc server
node ./build/server.js

// start gRpc client
node ./build/client.js

gateway Test

gateway address

// start gateway server
node ./build/gateway.js

POST body

{
    "isbn":"9",
    "type":"GMAIL",
    "author":"12345689",
    "isNew":"123",
    "user":{"id":"123"},
    "subTagsMap":{
        "1": "string"
    }
}

Update proto file && Generate gateway source code

// linux
cd bash && ./gateway.sh

// windows
cd bash && gateway.bat

Tool Chain