Provides a simple Webcomponent to make its Bitcoin Price Index (BPI) available to others
Example:
<template is="dom-bind">
<coindesk-component currency="BRL" updated="{{updated}}" updatediso="{{updatediso}}" updateduk="{{updateduk}}" disclaimer="{{disclaimer}}"
code="{{code}}" rate="{{rate}}" description="{{description}}" rate_float="{{rate_float}}"></coindesk-component>
<br/> Code:{{code}}
<br/> Description:{{description}}
<br/> Rate:{{rate}}
<br/>Updated:{{updated}}
<br/> Disclaimer:{{disclaimer}}
</template>
First, make sure you have the Polymer CLI installed. Then run polymer serve
to serve your application locally.
$ polymer serve
$ polymer build
This will create a build/
folder with bundled/
and unbundled/
sub-folders
containing a bundled (Vulcanized) and unbundled builds, both run through HTML,
CSS, and JS optimizers.
You can serve the built versions by giving polymer serve
a folder to serve
from:
$ polymer serve build/bundled
$ polymer test
Your application is already set up to be tested via web-component-tester. Run polymer test
to run your application's test suite locally.
List of supported currencies http://api.coindesk.com/v1/bpi/supported-currencies.json