Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
varex83 committed Nov 10, 2023
1 parent 7d8d99b commit 1c9fb9c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ The easiest way to install Rust and Cargo is by using [rustup](https://rustup.rs
Then:

```bash
cd api;
cargo build;
cd api
cd hardhat_env
yarn
cd ..
cargo build
```

#### Plugin
Expand Down Expand Up @@ -78,8 +81,11 @@ pnpm run serve;
```

```bash
cd api;
cargo run;
cd api
cd hardhat_env
yarn
cd ..
VITE_URL=http://localhost:3000 cargo run
```

or alternatively, you can run the server in watch mode (with `cargo watch`):
Expand Down
14 changes: 11 additions & 3 deletions api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@

- [Rust](https://www.rust-lang.org/tools/install)

## Prepare

```bash
cd api
cd hardhat_env
yarn
cd ..
```
## Run

```bash
cargo run
VITE_URL=http://localhost:3000 cargo run
```
## To run while watching files

```bash
cargo watch -x run
```
VITE_URL=http://localhost:3000 cargo watch -x run
```

0 comments on commit 1c9fb9c

Please sign in to comment.