@lomray/microservice-nodejs-lib
Version:
Package for create microservice architecture based on NodeJS & inverted json.
39 lines (29 loc) • 2.39 kB
Markdown
# Microservice Node.js library
Package for create microservice architecture based on [Ijson job server](https://github.com/lega911/ijson).
All requests are made through `JSON-RPC 2.0`


[](https://sonarcloud.io/summary/new_code?id=Lomray-Software_microservice-nodejs-lib)
[](https://sonarcloud.io/summary/new_code?id=Lomray-Software_microservice-nodejs-lib)
[](https://sonarcloud.io/summary/new_code?id=Lomray-Software_microservice-nodejs-lib)
[](https://sonarcloud.io/summary/new_code?id=Lomray-Software_microservice-nodejs-lib)
[](https://sonarcloud.io/summary/new_code?id=Lomray-Software_microservice-nodejs-lib)
[](https://sonarcloud.io/summary/new_code?id=Lomray-Software_microservice-nodejs-lib)
### This package includes instruments for creating:
- Gateways
- Microservices
- Sockets
### Installation:
```bash
npm i --save @lomray/microservice-nodejs-lib
```
## Investigate
Take a look at [Microservices](https://github.com/Lomray-Software/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
