diff --git a/examples/api/api.js b/examples/api/api.js index b25f5c1..3ded68c 100644 --- a/examples/api/api.js +++ b/examples/api/api.js @@ -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" diff --git a/examples/api/api.markdown b/examples/api/api.markdown index 4204daa..7d044a1 100644 --- a/examples/api/api.markdown +++ b/examples/api/api.markdown @@ -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' diff --git a/examples/hello/fluent-hello.js b/examples/hello/fluent-hello.js index 4883bd0..aa2597f 100644 --- a/examples/hello/fluent-hello.js +++ b/examples/hello/fluent-hello.js @@ -2,6 +2,8 @@ var Cylon = require("../.."); +// ensure you install the API plugin first: +// $ npm install cylon-api-http Cylon.api(); Cylon diff --git a/examples/hello/hello.js b/examples/hello/hello.js index f06c362..663a4ed 100644 --- a/examples/hello/hello.js +++ b/examples/hello/hello.js @@ -2,6 +2,8 @@ var Cylon = require("../.."); +// ensure you install the API plugin first: +// $ npm install cylon-api-http Cylon.api(); Cylon.robot({ diff --git a/examples/robot_commands/robot_commands.js b/examples/robot_commands/robot_commands.js index 99b6a57..05d2e49 100644 --- a/examples/robot_commands/robot_commands.js +++ b/examples/robot_commands/robot_commands.js @@ -2,6 +2,8 @@ var Cylon = require("../.."); +// ensure you install the API plugin first: +// $ npm install cylon-api-http Cylon.api(); Cylon.robot({ diff --git a/examples/robot_commands/robot_commands.markdown b/examples/robot_commands/robot_commands.markdown index 6261b22..adb234a 100644 --- a/examples/robot_commands/robot_commands.markdown +++ b/examples/robot_commands/robot_commands.markdown @@ -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: diff --git a/examples/sphero-pebble-sf/sphero-pebble-sf.js b/examples/sphero-pebble-sf/sphero-pebble-sf.js index 243e453..8e88b7e 100644 --- a/examples/sphero-pebble-sf/sphero-pebble-sf.js +++ b/examples/sphero-pebble-sf/sphero-pebble-sf.js @@ -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({ diff --git a/examples/sphero-pebble-sf/sphero-pebble-sf.markdown b/examples/sphero-pebble-sf/sphero-pebble-sf.markdown index 9b7ac67..b6df342 100644 --- a/examples/sphero-pebble-sf/sphero-pebble-sf.markdown +++ b/examples/sphero-pebble-sf/sphero-pebble-sf.markdown @@ -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: