Skip to content

Commit

Permalink
Write a little bit more about command line app in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed Sep 7, 2022
1 parent 1b50f5c commit 4991a7f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,15 @@ let config = Configuration::default();
let node = Node::start(config).await;
```

You can also run the node server simply as a [command line application][`command line application`].
You can also run the node server simply as a [command line application][`command line application`]:

```bash
# Compile and run local node at http://localhost:2020/graphql
cargo run

# Enable logging
RUST_LOG=aquadoggo=info cargo run
```

[`Tauri`]: https://tauri.studio

Expand Down
7 changes: 2 additions & 5 deletions aquadoggo_cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ Node server with GraphQL API for the p2panda network.
## Usage

```
USAGE:
aquadoggo [OPTIONS]
FLAGS:
-h, --help
Prints help information
Expand Down Expand Up @@ -42,10 +39,10 @@ OPTIONS:

```bash
# For all debug logs from `aquadoggo` and external crates
RUST_LOG=debug DATABASE_URL=postgres://postgres:postgres@localhost:5432/db ./aquadoggo
RUST_LOG=debug DATABASE_URL=postgres://postgres:postgres@localhost:5432/db cargo run

# For compact info logs, only directly coming from `aquadoggo`
RUST_LOG=aquadoggo=info DATABASE_URL=postgres://postgres:postgres@localhost:5432/db ./aquadoggo
RUST_LOG=aquadoggo=info DATABASE_URL=postgres://postgres:postgres@localhost:5432/db cargo run
```

## Development
Expand Down

0 comments on commit 4991a7f

Please sign in to comment.