Polkadot programming - development using node template

 Polkadot - Substrate development Step by Step


Following commands will work on macOS... Good luck


This steps are for starting single node at backend and starting front end to explore ( e.g. transfer fund from one account to another)


----start----


Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"


Install opensssl

brew update && brew install openssl


Install Rust and RustToolchain


curl https://sh.rustup.rs -sSf | sh


source ~/.cargo/env

rustup default stable

rustup update

rustup update nightly

rustup target add wasm32-unknown-unknown --toolchain nightly


verify installation by 


rustc --version

rustup show


Prepare a Substrate node using the node template


Setup node template. Its a provides a working development environment so that you can start building on Substrate right away.



git clone https://github.com/substrate-developer-hub/substrate-node-template

cd substrate-node-template

# We want to use the `latest` tag throughout all of this tutorial

git checkout latest

cargo build --release



install the front-end template:


Install node.js

verify by

node --version


sudo npm install --location=global yarn


verify by

yarn --version


Install front end inside recently created node template directory


git clone https://github.com/substrate-developer-hub/substrate-front-end-template


cd substrate-front-end-template

# We want to use the `latest` tag throughout all of this tutorial

git checkout latest

yarn install


Start the local Substrate node



 ~ % cd substrate-node-template 

substrate-node-template % ./target/release/node-template --dev

   


Start the front-end template


To use the front-end template:

  1. Open a new terminal shell on your computer, change to the root directory where you installed the front-end template.
  2. Start the Front-end template by running the following command

    yarn start

Open http://localhost:8000 in a browser to view the front-end template.


Test


select the account for Dave and transfer minimum amount stated on UI


...success....


----end----

Comments

Popular posts from this blog

Qlik Sense Important Links

Cloud Architecture Notes

AWS Rout53 NS records do not match with whois dns records OR Your site NOT working with registered domain name? Check this...