More detailed build history on Travis CI
Joystream node is the main server application that connects to the network, synchronizes the blockchain with other nodes and produces blocks if configured as a validator node.
To setup a full node and validator review the advanced guide from the helpdesk.
The latest pre-built binaries can be downloads from the releases page.
Clone the repository and install build tools:
git clone https://github.com/Joystream/joystream.git
cd joystream/
./setup.sh
cargo build --release
Run the node and connect to the public testnet.
cargo run --release -- --chain ./rome-tesnet.json
The rome-testnet.json
chain file can be ontained from the release page
This will install the executable joystream-node
to your ~/.cargo/bin
folder, which you would normally have in your $PATH
environment.
cargo install joystream-node --path node/
Now you can run
joystream-node --chain rome-testnet.json
This will build and run a fresh new local development chain purging existing one:
./scripts/run-dev-chain.sh
cargo test
We use cargo-fmt
to format the source code for consistency.
It should be available on your machine if you ran the setup.sh
script, otherwise install it with rustup:
rustup component add rustfmt
Applying code formatting on all source files recursing subfolders:
cargo-fmt