Setup a node

Installing from source

Dependencies

Debian

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

MacOS

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install cmake npm

Windows

Open Powershell and execute the following commands:

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'))
choco install git --params '/NoAutoCrlf' nodejs-lts cmake --installargs 'ADD_CMAKE_TO_PATH=System' llvm

Restart Powershell

Rust

Minimum required version 1.51.

Installation (Debian, MacOS)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
Installation (Windows)

Install Rust from here.

Update
rustup update

Compilation

git clone https://github.com/iotaledger/bee.git --branch chrysalis-pt-2
cd bee/bee-node

With dashboard

git submodule update --init
cd src/plugins/dashboard/frontend
npm install
npm run build-bee
cd ../../../../
cargo build --release --features dashboard

Without dashboard

cargo build --release

Running

cp config.example.toml config.toml
../target/release/bee