This is a repo for a microservice in rust that returns a random category from a list of categories. This microservice is a example of how to create a microservice in rust for my Integration course at the University of the Americas.
- Clone the repo
- Run
cargo run
- Run
cargo testfor running all tests - Run
cargo test -- --test-threads=1for running all tests in a single thread - Run
cargo test test_categorize_endpointfor running a specific test calledtest_categorize_endpoint - Run
cargo test test_categorize_objectfor running a specific test calledtest_categorize_object
- Run
cargo build --release - Run
cargo build --release --target x86_64-pc-windows-gnu