包详细信息

@lomray/microservice-authorization

Lomray-Software113Apache-2.02.4.0

Authorization microservice based on NodeJS & inverted json.

nodejs, js, microservice, inverted

自述文件

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
  2. 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
  3. 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