Substrate Package
A stable, known working version of the Substrate Node Template, Substrate Module Template, and Substrate UI Template.
How to use it:
- Clone the repository.
git clone https://github.com/substrate-developer-hub/substrate-package
- Initialize the git submodules.
cd substrate-package/ git submodule update --init
- Install Substrate development dependencies.
curl https://getsubstrate.io -sSf | bash -s -- --fast
This installs external dependencies needed for substrate. Take a look at the script. Windows users need to follow instructions here instead
-
Compile and start your Substrate Node Template.
cd substrate-node-template/ # Setup your Wasm build environment ./scripts/init.sh # Compile your node cargo build --release # Run the node ./target/release/node-template --dev
-
Start your local Substrate UI Template
# Open a separate terminal cd substrate-ui-template/ yarn & yarn start
-
Interact with your node and hack away!
What is this?
- Compatible with the latest documentation available for Substrate Runtime Module development.
- The fastest way to get started building on substrate
- Using Substrate branch:
master
What is the Substrate Module Template?
The substrate-module-template
is a template where you can start building your own runtime module as it's own independent crate. This is great if you want to allow others to include your runtime module into their Substrate node. Instructions for using the substrate-module-template
are included with the project.
We have added the Substrate module template as a dependency to the substrate-node-template
, but if you want to remove it, you will need to:
- Remove references from the runtime
Cargo.toml
file. - Remove references from the runtime
lib.rs
file.
What is tested to work?
- For now, these three templates are shown to work together.
substrate-package
?
Why do I need Substrate is a rapidly evolving platform, which means that breaking changes may occur on a day to day basis. Most of the times, these breaking changes do not radically change how substrate works, but may affect how Substrate is organized, the name of functions, the name of modules, etc...
The substrate-package
repository tries to help solve these problems by taking a snapshot of substrate
when it is known to be working and compatible with these different resources, such as:
- Documentation
- Tutorials
- Samples
- User Interfaces
- etc...