In a dedicated terminal tab, start a solana test node:
solana-test-validator
Build and deploy the programs:
// Clone metaplex repo:
git clone https://github.com/metaplex-foundation/metaplex.git
cd metaplex/rust/token-metadata
// Build and deploy the `token-metadata` program:
cargo build-bpf program/src
solana program deploy /home/laptop/go/src/github.com/metaplex-foundation/metaplex/rust/target/deploy/spl_token_metadata.so
// and then save the `Program ID` that gets printed after the successful deployment.
// Build and deploy the `nft-candy-machine` program to the test node:
cd metaplex/rust
anchor deploy
// and then save the `Program Id` that gets printed after the successful deployment.