Step 1: Hello World
Let's start with the simplest possible pipeline—one that just prints "Hello, World!" every second.
Create the Pipeline
Create a file called hello.yaml:
input:
generate:
interval: 1s
mapping: |
root.message = "Hello, World!"
output:
stdout: {}
Run it:
expanso-edge run --config hello.yaml
You'll see:
{"message":"Hello, World!"}
{"message":"Hello, World!"}
{"message":"Hello, World!"}
Press Ctrl+C to stop.
What Just Happened?
| Component | What It Does |
|---|---|
input.generate | Creates data from nothing (no external source needed) |
interval: 1s | Generates a new message every 1 second |
mapping | Uses Bloblang to define the message structure |
output.stdout | Prints each message to your terminal |