Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tombenke/npac-pdms-hemera-adapter

npac adapter with pdms api, using Hemera.js
https://github.com/tombenke/npac-pdms-hemera-adapter

adapter hemera microservice nats npac pattern-driven

Last synced: 23 days ago
JSON representation

npac adapter with pdms api, using Hemera.js

Awesome Lists containing this project

README

        

npac-pdms-hemera-adapter
========================

[![Quality Check](https://github.com/tombenke/npac-pdms-hemera-adapter/actions/workflows/quality_check.yml/badge.svg)](https://github.com/tombenke/npac-pdms-hemera-adapter/actions/workflows/quality_check.yml)
[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)
[![npm version][npm-badge]][npm-url]

## About

This is an npac adapter with pdms api, using Hemera.js. This adapter also provides direct nats-level functions.

The adapter can be accessed via the `pdms` name, and provides the following properties:

```JavaScript
pdms: {
hemera: // The hemera instance
add: // The hemera.add() function
act: // THe hemera.act() function
publish: // The nats.publish() function
subscribe: // The nats.subscribe() function
request: // A NATS-level RPC-like request function
response: // A NATS-level RPC-like response function
}
```

See the [unit tests](src/index.spec.js) as an example for the usage of these functions.

## Installation

Run the install command:

npm install --save npac-pdms-hemera-adapter

## Configuration

This module uses the `config.pdms` property to gain its configuration parameters.

The default parameters can be found in [`src/config.js`](src/config.js):

```JavaScript
{
pdms: {
natsUri: process.env.PDMS_NATS_URI || "nats://demo.nats.io:4222"
}
}
```

## Get Help

To learn more about the tool visit the [homepage](http://tombenke.github.io/npac-pdms-hemera-adapter/api/).

## References

- [npac](http://tombenke.github.io/npac).

---

This project was generated from the [ncli-archetype](https://github.com/tombenke/ncli-archetype)
project archetype, using the [kickoff](https://github.com/tombenke/kickoff) utility.

[npm-badge]: https://badge.fury.io/js/npac-pdms-hemera-adapter.svg
[npm-url]: https://badge.fury.io/js/npac-pdms-hemera-adapter
[travis-badge]: https://api.travis-ci.org/tombenke/npac-pdms-hemera-adapter.svg
[travis-url]: https://travis-ci.org/tombenke/npac-pdms-hemera-adapter
[Coveralls]: https://coveralls.io/github/tombenke/npac-pdms-hemera-adapter?branch=master
[BadgeCoveralls]: https://coveralls.io/repos/github/tombenke/npac-pdms-hemera-adapter/badge.svg?branch=master