First, you need to install Rust and its additional dependencies, which might take a while (~20 minutes). If you’re on a Mac or Linux machine, you can do this with the following one-line command:
curl https://getsubstrate.io -sSf | bash -s -- --fast
If you are using Windows you'll probably want to install a Bash shell, as well as take a look at the following instructions.
When everything is ready, you might want to restart your terminal. Once this is done, you can create your own node template folder by running:
substrate-node-new <project_name> <your_name>
Now, make sure you switch to this folder. If you want to run your blockchain, you'll always need to compile your Wasm image first and then you can build the executable. Additionally, you'll probably want to clean the cache of your previous run.
./scripts/build.sh
cargo build --release
./target/release/<project_name> purge-chain –dev
All that is left to do is to finally start your own blockchain:
./target/release/<project_name> --dev
After this, you might need to agree to the firewall settings and you should see something similiar to the following image: