# Rezon-cli
## Setup
1. 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
```
2. 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 async_trait::async_trait;
pub const PATH_TO_SERVER: &str = "/Users/JRDarrenbaldwin/Documents/Coding/CincinnatVentures/rezon/rezon-cli-demo/server";
```
3. Edit line `44` inside of `/src/commands/report.rs` and update it to be relative to your local machine:
```rust
let file_path = "/Users/JRDarrenbaldwin/rezon/reports.json";
```
4. To add a user's model, copy it into the `/server/models` directory and be sure to name it `testModel.json` and `testModel.h5`
5. Whenever you make a new change, be sure to re-build the rust binary with:
```bash
cargo build --release
```
6. 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>
```
</br>
> Note: be sure to have docker installed in running on your machine before invoking the `deploy` command