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

realglobe-Inc/sugo-example-rapiro

Repository files navigation

sugo-example-rapiro

Build Status npm Version JS Standard

SUGOS example project to contorl RAPIRO.

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 package.

Install the CLI:

$ npm install sugo-example-rapiro -g

Then, run the server

$ PORT=3000 sugo-example-rapiro 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-rapiro -g

Then, connect the actor to the hub

$ HOSTNAME="__your_host__" ACTOR_KEY="__your_actor_name__" sugo-example-rapiro 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-rapiro -g

Then, run the example caller

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

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

License

This software is released under the MIT License.

Links