包详细信息

@lomray/microservice-nodejs-lib

Lomray-Software63Apache-2.02.21.2

Package for create microservice architecture based on NodeJS & inverted json.

node, js, microservice, inverted

自述文件

Microservice NodeJS library

Package for create microservice architecture based on Ijson job server.
All requests are made through JSON-RPC 2.0

npm GitHub

Quality Gate Status Reliability Rating Security Rating Vulnerabilities Lines of Code Coverage

This package includes instruments for creating:

  • Gateways
  • Microservices

Installation:

npm i --save @lomray/microservice-nodejs-lib

Example

Go to example folder and check out the example of creating microservice and gateway. See example/scratch.http for understanding how to send requests.

  1. install dependencies: npm ci
  2. run ijson: docker-compose up
  3. run 2 microservices - gateway & demo microservice: node --require ts-node/register example/index.ts

How it works

Diagram