Fennel Protocol is a decentralized communication distribution focusing on providing secure and resilient communications to chain-parallel organizations and applications.
Follow the steps below to get started. Make sure you have libclang
installed:
brew install --with-toolchain llvm
choco install llvm
apt install libclang-dev
After cloning this repository, be sure to include necessary submodules.
git submodule init
git submodule update
If you do not already have Rust installed, with the nightly build set as default, complete the installation.
Following the installation of Rust, ensure your environment is defaulting to the nightly build:
rustup default nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
Use Rust's native cargo
command to build and launch the template node:
cargo run --release -- --dev --tmp
The cargo run
command will perform an initial build. Use the following command to build the node
without launching it:
cargo build --release
The provided cargo run
command will launch a temporary node and its state will be discarded after
you terminate the process. After the project has been built, there are other ways to launch the
node.
This command will start the single-node development chain with persistent state:
./target/release/node-fennel-protocol --dev
Purge the development chain's state:
./target/release/node-fennel-protocol purge-chain --dev
Start the development chain with detailed logging:
RUST_BACKTRACE=1 ./target/release/node-fennel-protocol -ldebug --dev
Once the node is running locally, you can connect it with Polkadot-JS Apps front-end to interact with your chain. Click here connecting the Apps to your local node template.
If you want to see the multi-node consensus algorithm in action, refer to our Start a Private Network tutorial.
First, install Docker and Docker Compose.
Then run the following command to start a single node development chain.
docker compose build; docker compose up -d
This command will firstly compile your code, and then start a local development network.