You can find the source code for Bee in the official Bee repository. Before you can install Bee from source, you will need to install some required dependencies.
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 updateapt-get upgradeapt-get install git npm build-essential cmake pkg-config librocksdb-dev llvm clang libclang-dev libssl-dev
To run a bee node in a macOS system, you will need to install the following packages using the brew package manager:
You can run the following command to install brew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After the installer finishes, you can use brew to install the required packages by running:
brew install cmake npm
To run a bee node in a Windows system, you will need to install the following packages using the chocolatey package manager:
To install chocolatey, open Powershell and execute the following command:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
After the installer finishes, you can use chocolatey to install the required packages by running:
choco install git --params '/NoAutoCrlf' nodejs-lts cmake --installargs 'ADD_CMAKE_TO_PATH=System' llvm
::info You will need to restart Powershell for your changes to take effect. :::
You can install Rust in a Debian/macOS system by running the following commands:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shsource $HOME/.cargo/env
You can find installation instructions for the Windows system in the official Rust documentation.
You can use rustup to update your Rust version by running the following command:
Once you have installed all the required dependencies, you can start compiling the Bee Node. To do so, you can simply clone the source code by running the following command.
git clone https://github.com/iotaledger/bee.git --branch chrysalis-pt-2
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:
You can compile Bee in two manners:
If you want to build Bee with its Dashboard, you should run the following commands:
git submodule update --initcd src/plugins/dashboard/frontendnpm installnpm run build-beecd ../../../../cargo build --release --features dashboard
If you want to build Bee without its Dashboard, you should run the following command:
cargo build --release
Once you have downloaded and compiled Bee, you should copy 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.example.toml config.toml
Once you have copied and updated the configuration, you can run your Bee node by executing the following command: