Skip to main content

Set Up a Node

You can find the source code for Bee in the official Bee repository. Before you can install Bee from the source, you will need to install some required dependencies.

Installing from Source

Dependency Packages

Before starting the installation process, you should make sure your system has all the required dependencies.

To run a Bee node in a Debian base system you will need to install the following packages:

To install all of these packages, you can run the following commands:

apt-get update
apt-get upgrade
apt-get install git build-essential cmake pkg-config librocksdb-dev llvm clang libclang-dev libssl-dev

Installing Rust

You will need to install Rust to run a Bee node. You should install version 1.51, or above.

You can install Rust in a Debian system by running the following commands:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env

Updating Rust

You can use rustup to update your Rust version by running the following command:

rustup update

Compiling the Bee Node

Download the Source

Once you have installed all the required dependencies, you can start compiling the Bee Node. To get started, you should clone the source code by running the following command.

git clone https://github.com/iotaledger/bee.git --branch mainnet-develop

Compiling

Before you start compiling Bee, you should change your current directory to bee/bee-node. You can do so by running the following command from the same directory where you downloaded the source:

cd bee/bee-node

You can compile Bee in two manners:

With Dashboard

If you want to build Bee with its Dashboard, you should run the following commands:

cargo build --release --features dashboard

Without dashboard

If you want to build Bee without its Dashboard, you should run the following command:

cargo build --release

Running

Once you have downloaded and compiled Bee, you should make a copy of the example config file. Be sure to review and update your configuration. You can find more information on configuring Bee in the configuration section.

To copy the example configuration file, you should run the following command:

cp config.template.json config.json

Once you have copied and updated the configuration, you can run your Bee node by executing the following command:

../target/release/bee