Following along the Substrate collectables workshop for learning about Substrate.
Installing Substrate after Rust is installed:
curl https://getsubstrate.io -sSf | bash
source ~/.cargo/env
Creating new parachain node from a template:
substrate-node-new substratekitties <author-name>
Building WASM runtime:
cd substratekitties
./build.sh
Building binary and running:
cargo build --release
./target/release/substratekitties --dev
Simply running after building WASM runtime:
cargo run -- --dev
Purging chain data (required after modifying runtime):
cargo run -- purge-chain --dev
UI for interacting with methods and storage:
Create new frontend project from boilerplate:
substrate-ui-new substratekitties
Install dependencies:
cd substratekitties-ui/
yarn install
Start app:
yarn run dev
Recover seed for import:
subkey restore Alice