Skip to content

Commit

Permalink
chore: update setup commands (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejVukosav authored Jul 4, 2024
1 parent 577e2b1 commit 4d38602
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions docs/03-getting-started/01-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,37 @@ Before you start, make sure you are familiar with [Calimero Terminology](/learn/

Clone repository from GitHub.

```terminal
```bash title="Terminal"
git clone [email protected]:calimero-network/core.git
```

Position in the root of the project and create a data folder for all configuration files.

```console
```bash title="Terminal"
$ mkdir data
```

Make sure you have Rust installed on your machine. If not, you can install it by following the instructions on the [Rust website](https://www.rust-lang.org/tools/install).

> **_NOTE:_**
> Use minimum rust version 1.79.0
### Setup

Setup coordinator node used for managing the network transactions and peer nodes representing the network participants.

#### Initialize and start coordinator node (separate terminal)

```
$ cargo run -p calimero-node -- --home data/coordinator init --server-port 2427 --swarm-port 2527
$ cargo run -p calimero-node -- --home data/coordinator run --node-type coordinator
```bash title="Terminal"
cargo run -p meroctl -- --node-name coordinator --home data init --server-port 2427 --swarm-port 2527
cargo run -p meroctl -- --node-name coordinator --home data run --node-type coordinator
```

#### Initialize and start your node (separate terminal)

```
$ cargo run -p calimero-node -- --home data/node1 init --server-port 2428 --swarm-port 2528
$ cargo run -p calimero-node -- --home data/node1 run
```bash title="Terminal"
cargo run -p meroctl -- --node-name node1 --home data init --server-port 2428 --swarm-port 2528
cargo run -p meroctl -- --node-name node1 --home data run
```

Node is now initialized and ready for use.
Expand Down

0 comments on commit 4d38602

Please sign in to comment.