Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

realglobe-Inc/sugo-example-arduino

Repository files navigation

sugo-example-arduino

Build Status npm Version JS Standard

SUGOS example of Arduino

favicon_url

This is an example application to use SUGOS. You can edit script and try it out on browser.

Requirements

Node.js NPM

Quick Start

Deploy to the Heroku and play it!

Deploy

How to

Setup Hub

Setup a hub server to provide UI pages and actor/connector API. This component is build with [SUGO-Hub][sugo_hub_url] package.

Install the CLI:

$ npm install sugo-example-arduino -g

Then, run the server

$ PORT=3000 sugo-example-arduino hub

In the most of cases, you need to setup reverse-proxy (like nginx) to exports the server to the outer world.

Connect Actor

Connect an actor to provides functionalities with. This component is build with SUGO-Actor package.

Install the CLI:

$ npm install sugo-example-arduino -g

Then, connect the actor to the cloud

$ HOSTNAME="__your_host__" ACTOR_KEY="__your_actor_name__" sugo-example-arduino actor

Run Caller

Run a caller to call functions defined in actor. This component is build with SUGO-Caller package.

Install the CLI:

$ npm install sugo-example-arduino -g

Then, run the example caller

$ HOSTNAME="__your_host__" sugo-example-arduino caller

Or, you can try it from UI pages on the cloud.

License

This software is released under the MIT License.

Links

Releases

No releases published

Packages

No packages published