-
Notifications
You must be signed in to change notification settings - Fork 1
Building
Thank you for your interest in Admarus! This page will help you compiling the project. All necessary command lines are provided for Linux users.
First, you will need Rust to compile the code.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Let's now dig into Admarus.
git clone https://github.com/Mubelotix/admarus
cd admarus
The daemon runs your node in the peer-to-peer network. It provides an API for the web interface. It can be compiled with Cargo (already installed with Rust).
You might need to install some libraries before compiling the daemon. On Debian-based distributions, you can install them with the following command.
sudo apt install pkg-config libssl-dev gcc
cd daemon
cargo build # Add a `--release` flag for better performances of the final program
Cargo will print the path to the program once compiled. If you want Cargo to run your program directly after building, you can the run
command.
cargo run
You can pass command line options to Admarus even when running with cargo run, by passing them after a --
separator.
cargo run -- --help # Will run `admarusd --help`
This step is optional since an online version is available at admarus.net both with HTTP and IPFS.
Trunk is required for building the WebUI. It can be installed with Cargo (included in Rust).
cargo install trunk
Make sure to update Trunk if you already installed it a while ago.
cd webui
trunk build # Add a `--release` flag for better performances of the final program
For next steps on how to install the programs you just built, see the Installation page.