Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

miguelmota/substratekitties-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

SubstrateKitties Learning

Following along the Substrate collectables workshop for learning about Substrate.

Instructions and notes

runtime

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:

https://polkadot.js.org/apps/

Frontend

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

License

MIT