Substrate node template is the first step to develop a Polkadot substrate-based parachains. The node template can be hosted on your local computer or a remote server. This guide will show you how to set up and run a substrate node template on a server.
1, Connect to remote server by using PuTTY client
2, Update Rust environment using following command:
rustup component add rust — src — — toolchain nightly
3, Verify that you have the WebAssembly target installed by running the following command:
rustup target add wasm32 — unknown — unknown — — toolchain nightly
You should see everything is up to date after being installed successfully
4, Install Substrate contracts node:
git clone https://github.com/substrate-developer-hub/substrate-node-template
cd substrate-node-template && git checkout polkadot-v0.9.26
cargo build — release
It may takes about 10–15 mins to compile.
5, Run substrate node:
./target/release/node-template — dev
You should see the terminal looks like the above. Congratulation! You have successfully installed a substrate node template on a remote server. Next step is to interact with the node from the browser, go check out my previous article!
Thanks for reading! Feel free to reach out to me if you have any questions.
Top comments (0)