@lomray/microservice-nodejs-lib
v2.21.2
Published
Package for create microservice architecture based on NodeJS & inverted json.
Downloads
136
Maintainers
Readme
Microservice NodeJS library
Package for create microservice architecture based on Ijson job server.
All requests are made through JSON-RPC 2.0
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.
- install dependencies:
npm ci
- run ijson:
docker-compose up
- run 2 microservices - gateway & demo microservice:
node --require ts-node/register example/index.ts