The goal of Polket is to create more commercial application scenarios for NFTs and connect to the Polkadot/Kusama network in a parachain manner. Based on the Polket chain, we will develop a smart fitness-type Web3 application. We will name it ToEarnFun.
Getting Started
Using Nix
Install nix and optionally direnv and lorri for a fully plug and play experience for setting up the development environment. To get all the correct dependencies activate direnv direnv allow and lorri lorri shell.
Rust Setup
First, complete the basic Rust setup instructions.
This command will start the single-node development chain with persistent state:
Purge the development chain's state:
Start the development chain with detailed logging:
Testing
Connect with Polkadot-JS Apps Front-end
Once the node template is running locally, you can connect it with Polkadot-JS Apps front-end to interact with your chain. Click here connecting the Apps to your local node template.
Then run the following command to start a single node development chain.
This command will firstly compile your code, and then start a local development network. You can also replace the default command (cargo build --release && ./target/release/polket-node --dev --ws-external) by appending your own. A few useful ones are as follow.
# Run Substrate node without re-compiling
./scripts/docker_run.sh ./target/release/polket-node --dev --ws-external
# Purge the local dev chain
./scripts/docker_run.sh ./target/release/polket-node purge-chain --dev
# Check whether the code is compilable
./scripts/docker_run.sh cargo check