Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/qqilihq/node-red-contrib-ecb-euro-exchange-rates

Node-RED node to access the Euro Exchange Rates by ECB
https://github.com/qqilihq/node-red-contrib-ecb-euro-exchange-rates

node-red node-red-contrib

Last synced: 6 days ago
JSON representation

Node-RED node to access the Euro Exchange Rates by ECB

Awesome Lists containing this project

README

        

# Euro Exchange Rates by ECB for Node RED

[![Run Status](https://api.shippable.com/projects/5cfe1574b875100006726d8d/badge?branch=master)]()
[![Coverage Badge](https://api.shippable.com/projects/5cfe1574b875100006726d8d/coverageBadge?branch=master)]()
[![npm version](https://badge.fury.io/js/node-red-contrib-ecb-euro-exchange-rates.svg)](https://badge.fury.io/js/node-red-contrib-ecb-euro-exchange-rates)

[Node-RED](https://nodered.org) plugin to retrieve Euro foreign exchange reference rates from an [API](http://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html) provided by the European Central Bank.

Based on my [ecb-euro-exchange-rates](https://github.com/qqilihq/ecb-euro-exchange-rates) module.

This serves as my “hello world” to learn how to build Node RED nodes. Most steps are simply following the [“Create your first node”](https://nodered.org/docs/creating-nodes/first-node) tutorial, additionally I used the `@types/node-red` to write this in TS.

## Build

Use a current version of [Node.js](https://nodejs.org/en/). Install the dependencies, run the tests, and compile the TypeScript code with [yarn](https://yarnpkg.com/lang/en/) or npm:

```shell
$ yarn
$ yarn test
$ yarn build
```

## Releasing to NPM

Commit all changes and run the following:

```shell
$ npm login
$ npm version
$ npm publish
```

… where `` is one of `patch`, `minor`, or `major`. This will update the `package.json`, and create a tagged Git commit with the version number.

- - -

Copyright Philipp Katz, 2019