First, pull this repository down to your local machine via a git clone
:
bash
git clone https://github.com/Cincinnati-Ventures/rezon-cli-demo.git
Open the project in your desired editor and replace the following line with your local directory path to this repo that you just cloned (inside of src/commands/deploy.rs
):
```rust
use kdam::tqdm;
use std::{process::Command as StdCommand, thread};
use asynctrait::asynctrait;
// Change this variable to reflect the absolute path to this repository and the /server
directory
pub const PATHTOSERVER: &str = "/Users/JRDarrenbaldwin/Documents/Coding/CincinnatVentures/rezon/rezon-cli-demo/server";
```
Edit line 44
inside of /src/commands/report.rs
and update it to be relative to your local machine:
rust
// Edit this variable to reflect your local file systmen (instead of @darren's)
let file_path = "/Users/JRDarrenbaldwin/rezon/reports.json";
To add a user's model, copy it into the /server/models
directory and be sure to name it testModel.json
and testModel.h5
Whenever you make a new change, be sure to re-build the rust binary with:
bash
cargo build --release
Finally, you can now run the CLI demo (supported commands are: run
, deploy
, init
, report
):
bash
cargo run <your-command>
Or...
bash
/path/to/binary/rezon <your-command>
Note: be sure to have docker installed in running on your machine before invoking the
deploy
command