Skip to content

oda-components/oda-api-ri-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tooling

Build

$ cargo build --workspace

Document

$ cargo doc --workspace

Run

Redis

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

TMF634

Run

$ RUST_LOG=info cargo run --package oda_ri_tmf634 --bin tmf634_server
$ cargo run --package oda_ri_tmf634 --bin tmf634_server -- --help

Test

Warning

Before run tests required run Redis and create index.

$ RUST_LOG=info cargo test --package oda_ri_tmf634 --test integration_server_test -- --nocapture

TMF639

$ 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

Releases

No releases published

Packages

No packages published

Languages