/microservice-nodejs-lib

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

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Microservice Node.js 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
  • Sockets

Installation:

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

Investigate

Take a look at Microservices to more understand how it works.

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