Skip to content

Commit

Permalink
docs: updates README
Browse files Browse the repository at this point in the history
  • Loading branch information
laysakura committed Feb 23, 2022
1 parent e5d4da6 commit ee41eb6
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,30 @@ We define the following data flow (called pipeline in SpringQL) in this demo.
cargo install replayman
```

- `nc` (netcat) command
- [springql-foreign-service](https://crates.io/crates/springql-foreign-service) lib crate, providing a simple sink implementation.

### Running demo
springql-foreign-service

```bash
nc -l 19872 # waits for outputs from demo pipeline
```
### Running demo

```bash
cargo new --bin springql-demo
cd springql-demo
curl https://raw.githubusercontent.com/SpringQL/SpringQL/main/springql-core/examples/demo_pipeline.rs -O src/main.rs
echo 'springql-foreign-service = "0.1' >> Cargo.toml
cargo run
```

Then the terminal running nc will show the following output.
Then you get the following output from the stdout.

```json
TODO
sink_vehicle_speed Object({"speed": Number(46.20000076293945), "ts": String("2020-10-21 01:37:56.000000000")})
sink_vehicle_speed Object({"speed": Number(46.20000076293945), "ts": String("2020-10-21 01:37:56.100000000")})
sink_engine_wheel_speed {"rpm":1742.0,"speed":154.0,"ts":"2020-10-21 01:37:56.000000000"}
...
```

## Learn more
Expand Down

0 comments on commit ee41eb6

Please sign in to comment.