-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
577e2b1
commit 4d38602
Showing
1 changed file
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|