- Install Rust
- Install Redis Stack
- Install ODA API Rust SDK: TMF634
- Install ODA API Rust SDK: TMF639
$ cargo build --workspace
$ cargo doc --workspace
Start the Redis Stack server:
$ redis-stack-server
Initialize an index:
$ redis-cli
127.0.0.1:6379> FT.CREATE resourceSpecification ON JSON PREFIX 1 resourceSpecification: SCHEMA $.id AS id TAG
$ RUST_LOG=info cargo run --package oda_ri_tmf634 --bin tmf634_server
$ cargo run --package oda_ri_tmf634 --bin tmf634_server -- --help
Warning
Before run tests required run Redis and create index.
$ RUST_LOG=info cargo test --package oda_ri_tmf634 --test integration_server_test -- --nocapture
$ RUST_LOG=info cargo run --package oda_ri_tmf639 --bin tmf639_server
$ cargo run --package oda_ri_tmf639 --bin tmf639_client -- --help
$ RUST_LOG=info cargo run --package oda_ri_tmf639 --bin tmf639_client -- --host localhost ListResource