Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit d0990e1

Browse files
committed
browser: Mention .js prebuilt library
1 parent 8d5a688 commit d0990e1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ A number of examples are available:
3737
* [Consumer with a dynamic offering discovery](https://github.com/flowhub/bigiot-js/blob/master/example/consumer_discover.js) (Node.js)
3838
* [Simple consumer for browser](./example/consumer.html)
3939

40+
We recomment using Webpack to include bigiot also in browser applications.
41+
But you may also use the prebuilt .js file, either:
42+
43+
* Latest: `https://flowhub.github.io/bigiot-js/bigiot.js`
44+
* Versioned: `https://flowhub.github.io/bigiot-js/$VERSION/bigiot.js`
45+
4046
### Authenticating with the marketplace
4147

4248
Once you've completed the above steps, you can use this library. Instantiate a consumer with:

example/consumer.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
<p>Connecting to BIG IoT...</p>
99
</body>
1010

11-
<script type='text/javascript' src='../dist/bigiot.js'></script>
11+
<!-- > can also use https://flowhub.github.io/bigiot-js/$VERSION/bigiot.js <-->
12+
<script type='text/javascript' src='https://flowhub.github.io/bigiot-js/bigiot.js'></script>
1213

1314
<script type='text/javascript'>
1415
const { consumer: BigIotConsumer, offering: BigIotOffering } = bigiot;

0 commit comments

Comments
 (0)