Building an application
This section builds an application from Plugins that already exist, with the programs and libraries Yoke released: a client that reaches it, the project that puts the Plugins together, a run on a local Core, and the ways a finished application leaves the workstation. Every Plugin it runs was written before it, by you or by somebody else. Writing a Plugin is Building a Plugin, and what a Plugin and an application are, and how they differ, is Plugins and applications; this section assumes both.
One worked example runs through every page: com.example.hello, which composes two Plugins — the
greeter you wrote in Building a Plugin, and a clock the Yoke project wrote —
and a client that asks each a question. The client is written in Go, with the Go family's library.
Every family offers the same contracts, so the steps are the same in another language and only the
spelling changes (what each family offers).
| Page | What it covers |
|---|---|
| Taking the Plugins | the project, a Plugin taken from its source with the composer, one gathered by hand, and what each declares |
| The project | the working directory the composer writes: a new build of a Plugin, the channel, a check and a package |
| An interface client | a program that reaches the application through a channel, as a panel or a tool does |
| Running it | a run from the working directory, the grants, an instance, and what to read when something is wrong |
| Shipping it | the package on a host, the service form a device runs, and an image |
What you need
Yoke installed on this machine, with the composer; git and Go, to build the clock from its source and
the client; and the greeter's Plugin project, from Building a Plugin. Nothing in this section needs root. Setting up Yoke obtains the two files of
a release — yoke-<version>-linux-<arch>.tar.gz, the programs a host runs, and
yoke-conformance-<version>-linux-<arch>.tar.gz, which carries yoke-compose — and
installs them; installing for your account alone is enough for every page
here.
yoke-compose is for the workstation and is never installed on a device; a device carries the
runtime.