Add note to examples about installing API plugin
This commit is contained in:
parent
1316763bac
commit
6e830bee34
|
@ -2,6 +2,8 @@
|
|||
|
||||
var Cylon = require("../..");
|
||||
|
||||
// ensure you install the API plugin first:
|
||||
// $ npm install cylon-api-http
|
||||
Cylon.api({
|
||||
host: "0.0.0.0",
|
||||
port: "8080"
|
||||
|
|
|
@ -13,6 +13,8 @@ First, let's import Cylon:
|
|||
Next up, we'll configure the API Cylon will serve, telling it to serve on port
|
||||
`8080`.
|
||||
|
||||
// ensure you install the API plugin first:
|
||||
// $ npm install cylon-api-http
|
||||
Cylon.api({
|
||||
host: '0.0.0.0',
|
||||
port: '8080'
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
var Cylon = require("../..");
|
||||
|
||||
// ensure you install the API plugin first:
|
||||
// $ npm install cylon-api-http
|
||||
Cylon.api();
|
||||
|
||||
Cylon
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
var Cylon = require("../..");
|
||||
|
||||
// ensure you install the API plugin first:
|
||||
// $ npm install cylon-api-http
|
||||
Cylon.api();
|
||||
|
||||
Cylon.robot({
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
var Cylon = require("../..");
|
||||
|
||||
// ensure you install the API plugin first:
|
||||
// $ npm install cylon-api-http
|
||||
Cylon.api();
|
||||
|
||||
Cylon.robot({
|
||||
|
|
|
@ -16,6 +16,8 @@ First, let's make sure to load up Cylon:
|
|||
|
||||
Now that we've got that, let's set up the api:
|
||||
|
||||
// ensure you install the API plugin first:
|
||||
// $ npm install cylon-api-http
|
||||
Cylon.api();
|
||||
|
||||
And with that done let's define our robot:
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
var Cylon = require("../..");
|
||||
|
||||
// ensure you install the API plugin first:
|
||||
// $ npm install cylon-api-http
|
||||
Cylon.api({ host: "0.0.0.0", port: "8080" });
|
||||
|
||||
Cylon.robot({
|
||||
|
|
|
@ -7,6 +7,8 @@ First, let's import Cylon:
|
|||
Next up, we'll configure the API Cylon will serve, telling it to serve on port
|
||||
`8080`.
|
||||
|
||||
// ensure you install the API plugin first:
|
||||
// $ npm install cylon-api-http
|
||||
Cylon.api({ host: '0.0.0.0', port: '8080' });
|
||||
|
||||
Now that we have Cylon imported, we can start defining our Pebble robot:
|
||||
|
|
Loading…
Reference in New Issue