Skip to content

Lomray-Software/microservices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Microservices based on microservice-nodejs-lib

GitHub GitHub package.json dependency version (dev dep on branch) semantic-release

Staging: Build staging
Prod: Build prod

Microservices list:

Use CLI to start your own art.

How to investigate it

Method 1:

Use docker to run all in one command:

docker-compose -f docker-compose.yml -f docker-compose.ms.yml up

Method 2

  1. Run Inverted Json job server and postgres database.
docker-compose up
  1. Run configuration microservice.
  • Through docker:
docker-compose -f docker-compose.ms.yml up configuration
  • Through node:
cd microservices/configuration
npm i
npm run start:dev
  1. Run other needed microservices (the same actions as in step 2).

That is all. Check it:

curl -X POST http://127.0.0.1:3000
   -H 'Content-Type: application/json'
   -d '{"id":"unique-id-1","method":"microservice-name.method","params":{}}'

see example requests in http-requests folder

Check all available microservices

Microservices also available like npm packages:

npm i --save @lomray/microservice-NAME

# for e.g.
npm i --save @lomray/microservice-configuration

Integration tests

  1. Run all microservices
  2. Run commands:
cd tests
npm run test