Normally, we would teach you more about the Substrate blockchain development framework, however, setting up your computer for Substrate development can take a while.
To optimize your time, we will have you start the setup process. While things are compiling, you can continue to the next section to learn more about Substrate and what we are building.
You will probably need to do some set-up to prepare your computer for Substrate development.
Before you continue, complete the official Installation guide. After
rustuphas been installed and configured, and you've configured the Rust toolchain to default to the latest stable version you can return to these steps.
Compiling the Node Template
Once the prerequisites are installed, you can use Git to clone the Substrate Developer Hub Node Template, which serves as a good starting point for building on Substrate.
Clone the Node Template (version
git clone -b latest --depth 1 https://github.com/substrate-developer-hub/substrate-node-template
Compile the Node Template
cd substrate-node-template # NOTE: you should always use the `--release` flag cargo build --release # ^^ this will take a while!
You should start building the node template before moving on!
The time required for the compilation step depends somewhat on network bandwidth, but far more on the CPU number and speed you're using.
Run into issues? Try the troubleshooting tips.
Install the Front-End Template
This tutorial uses a ReactJS front-end template to allow you to interact with the Substrate-based blockchain node that you should have started compiling in the previous step. You can use this same front-end template to create UIs for your own projects in the future.
Now you can proceed to set up the front-end template with these commands.
# Clone the frontend template from github git clone -b latest --depth 1 https://github.com/substrate-developer-hub/substrate-front-end-template # Install the dependencies cd substrate-front-end-template yarn install