The greetings extension is a pointless extension that gives greetings to people.
The extension was developed to not speak with strangers and only recognises a few common Finnish names.
You can run an action (stateless, synchronous) or create an object (stateful, asynchronous) to get a greeting.
The example includes implementing:
- A controller (with a
Reconciler
andValidator
) - An actor
- A portal.
- Run
make dev
to start the Horizon server in dev mode. - Copy the credentials that are output and save it to a file
nats.creds
. - Export the
nats.creds
for NATS to use itexport NATS_CREDS=./nats.creds
- Run the greetings extension:
go run ./examples/greetings/cmd/greetings.go
Once you start the server and create a namespace you should see the "Greetings" portal on the left:
From there you can click around and greet some people.