Skip to content

Commit

Permalink
[1/n] Tiny README improvements
Browse files Browse the repository at this point in the history
Test Plan:
  • Loading branch information
AhmedSoliman committed Jul 19, 2023
1 parent 961dece commit c87ac79
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,39 @@

Install protobuf

```
```sh
brew install protobuf
```

```
cargo build
```

## Tests

Install the cargo-nextest test runner [link](https://nexte.st/book/installation.html)
```
```sh
cargo nextest run
```

## Run
## Run in Development Environment

1/ Run the server with the default configuration
```sh
# Set the admin key
CRONBACK__API__ADMIN_API_KEYS=adminkey cargo run
```
cargo run -- -c <config-file>

```sh
# Skip missed runs by

CRONBACK__SCHEDULER__DANGEROUS_FAST_FORWARD=true cargo run

# Set the admin key
CRONBACK__API__ADMIN_API_KEYS=adminkey cargo run
# Get API Secret Token:
export CRONBACK_SECRET_TOKEN=`http -j --auth adminkey --auth-type bearer https://localhost:8888/v1/admin/api_keys X-On-Behalf-Of:prj_063001GZKTEF61EJ34W1G0PXJS7V6M key_name=master | jq -r '.key'`
```

2/ Get API Secret Token:
```sh
cargo cli --localhost --secret-token=adminkey admin --project-id=prj_063001GZKTEF61EJ34W1G0PXJS7V6M api-keys create dev_key
```

## Prometheus Metrics
Expand Down

0 comments on commit c87ac79

Please sign in to comment.