# @lomray/microservice-configuration

> Configuration microservice based on NodeJS & inverted json.

Latest version **2.4.0** (published 2024-04-24) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @lomray/microservice-configuration
pnpm add @lomray/microservice-configuration
yarn add @lomray/microservice-configuration
bun add @lomray/microservice-configuration
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.4.0 |
| Published | 2024-04-24 |
| First published | 2022-02-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 26.6 KB |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Mikhail Yarmaliuk |
| Maintainers | matthew_patell, danial031193 |
| Keywords | nodejs, js, microservice, inverted, json, gateway, worker, typescript |

## Links

- npm: https://www.npmjs.com/package/@lomray/microservice-configuration
- Repository: https://github.com/Lomray-Software/microservices
- Homepage: https://github.com/Lomray-Software/microservices/configuration
- Issues: https://github.com/Lomray-Software/microservices/issues
- npm.io page: https://npm.io/package/@lomray/microservice-configuration

## Dependencies (5)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [typeorm](https://npm.io/package/typeorm.md) 0.2.41
- [class-validator](https://npm.io/package/class-validator.md) ^0.14.0
- [class-validator-jsonschema](https://npm.io/package/class-validator-jsonschema.md) ^5.0.0
- [@lomray/microservice-helpers](https://npm.io/package/@lomray/microservice-helpers.md) ^2.18.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 2.4.0 (latest) — 2024-04-24
- 2.4.1-beta.1 (beta) — 2025-09-22
- 2.3.0 — 2024-04-23
- 2.0.0 — 2024-04-22
- 2.0.0-beta.25 — 2024-03-26
- 2.0.0-beta.24 — 2024-03-06
- 2.0.0-beta.23 — 2024-03-05
- 2.0.0-beta.22 — 2023-12-20
- 2.0.0-beta.21 — 2023-12-14
- 2.0.0-beta.20 — 2023-11-28
- 2.0.0-beta.19 — 2023-10-03
- 2.0.0-beta.18 — 2023-10-03
- 2.0.0-beta.17 — 2023-07-31
- 2.0.0-beta.16 — 2023-07-31
- 2.0.0-beta.15 — 2023-07-28
- … 97 more at https://npm.io/package/@lomray/microservice-configuration/versions

## README

# NodeJS Microservices based on [microservice-nodejs-lib](https://github.com/Lomray-Software/microservice-nodejs-lib)

![GitHub](https://img.shields.io/github/license/Lomray-Software/microservices)
![GitHub package.json dependency version (dev dep on branch)](https://img.shields.io/github/package-json/dependency-version/Lomray-Software/microservices/dev/typescript/staging)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

Staging: [![Build staging](https://github.com/Lomray-Software/microservices/actions/workflows/build.yml/badge.svg?branch=staging)](https://github.com/Lomray-Software/microservices/actions/workflows/build.yml)   
Prod: [![Build prod](https://github.com/Lomray-Software/microservices/actions/workflows/build.yml/badge.svg?branch=prod)](https://github.com/Lomray-Software/microservices/actions/workflows/build.yml)

## Microservices list:
 - [Authentication](microservices/authentication)
 - [Authorization](microservices/authorization)
 - [Blog](microservices/blog)
 - [Configuration](microservices/configuration)
 - [Content](microservices/content)
 - [Cron](microservices/cron)
 - [Files](microservices/files)
 - [Gateway](microservices/gateway)
 - [Notification](microservices/notification)
 - [Payment-stripe](microservices/payment-stripe)
 - [Users](microservices/users)
 
## Use [CLI](https://github.com/Lomray-Software/microservices-cli) to start your own art.

## How to investigate it

### Method 1:
Use docker to run all in one command:
```bash
docker-compose -f docker-compose.yml -f docker-compose.ms.yml up
```

### Method 2
1. Run `Inverted Json` job server and `postgres` database.
```bash
docker-compose up
```
2. Run `configuration` microservice.
 - Through docker:
```bash
docker-compose -f docker-compose.ms.yml up configuration
```
 - Through node:
```bash
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:**
```bash
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](https://github.com/orgs/Lomray-Software/packages?repo_name=microservices)   

Microservices also available like npm packages:   
```bash
npm i --save @lomray/microservice-NAME

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

## Integration tests
1. Run all microservices
2. Run commands:
```bash
cd tests
npm run test
```

---
_Source: https://npm.io/package/@lomray/microservice-configuration · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
