shawntabrizi / substrate-collectables-workshop

A guided tutorial for building an NFT marketplace with the Polkadot SDK
https://www.shawntabrizi.com/substrate-collectables-workshop/
MIT License
230 stars 98 forks source link
marketplace nft polkadot rust substrate tutorial

Substrate Collectables Workshop

This repository is the basis for a tutorial teaching how to develop a simple NFT marketplace using the polkadot-sdk.

If you are looking for the previous version of this tutorial from 2020, you can find all the original source code on the docsify-old branch. However, this content is way out of date, hence this new tutorial! :)

Goal

The goal of this tutorial is to teach by experience various entry level concepts around Polkadot Pallet development.

The tutorial is designed to be completed by anyone with basic familiarity with Rust, and little to no familiarity with the Polkadot SDK.

If you do not feel comfortable with the level of Rust used in this tutorial, we recommend you first check out the rust-state-machine tutorial.

How To Use

This repository is not meant to be used directly, but as the source for generating an interactive tutorial using the source code and readme files included at each commit.

This repository manages 3 branches, each with its own history and purpose:

If you have small changes that need to be made to a single step, feel free to open an issue or make a PR against the master branch. However, for more complex changes which may affect multiple steps, consider learning more about the gitorial format.

More about Gitorial

The heart of this tutorial is the Gitorial format.

If you browse the commit history of the gitorial branch, you will see that each commit is designed to be a single step in the tutorial.

All commits are prefixed with one of:

You can use Git to make changes to the history of the repo, and then use git merge to propagate those changes cleanly into the rest of your repo.

Maintenance

Maintaining the repo means keeping all three of the main branches in sync.

For this, you can use the gitorial-cli.

Once you have made changes to the appropriate branch, you can use these commands to get all branches in order: