Skip to content

Is anyone using this? #1

Open
Open
@cikasfm

Description

Hi @AnthonyV44 / authors,

I'm trying to use the ClientJS library for the RVR.

First of all - I'm trying to understand a proper set-up using Raspberry Pi. I've got the wires connected, RPi software installed & all preconditions met.

  1. The server must be running on the RPi - done. Found the swagger API - tested, seems to be working fine, driving, LED changing color works OK.

  2. The client SDK is really just a JS API for using the exposed web-services. Having that said - the client could use just about any language that supports http requests.

Anyways, a few questions:

  • should the client be running on the same machine as the server? Why are they separate, then?
  • what are the cons & pros of running them on the same vs different machines?

I'm familiar with NodeJS & server-client architecture, but the ClientJS lib is confusing.

Why are the examples written in JS embedded in HTML? Is the intention to trigger the script by opening the HTML in the browser?
If yes - the HTML needs to be opened inside the machine running the server, meaning I have to be connected using smth like a VNC to the same raspberry, in parallel to SSH where I'm running the server, which is very confusing.

and the final, but most important question of the day:
Where do I find the ../../client-library/index.js dependency? Which is used in the examples, e.g. api-and-shell

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions