Today, I just started to take a course on "Build a Web3 app on Solana with React and Rust" by Buildspace, then I decided to take some short notes here, so all installation based on my machine only (Macbook Pro). It will doesn't work on other OS.
We can use
rustup to install Rust Language.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
All tools are installed to
Verify that Rust installed correctly.
We can update Rust to the latest version with
sh -c "$(curl -sSfL https://release.solana.com/v1.9.5/install)"
After installing, the installer messaging may prompt you to add the
~/.zprofile, but it automatically adds already.
Then I restart the terminal and its works.
To verify Solana installed:
We can get/set the configuration of Solana by running:
solana config get solana set <COMMAND> <OPTION>
The prerequisite on their website should make sure to set up all tools, including Rust, Solana and Yarn.
npm install -g yarn
There are a few options to install Anchor, but install via NPM Package only x86_64 Linux is supported currently. Then the only option is to install via
cargo install --git https://github.com/project-serum/anchor --tag v0.21.0 anchor-cli --locked
This process takes longer than all the above installations because it has to download and compile so many packages.
To verify Anchor:
Cool, I'm very excited to be a part of this journey :)
The resources that I bookmarked and will use for my learning resource in the future (I think most of the list are already mentioned on the Solana Developer website.)
- Solana Developer
- Solana Docs
- Start On Solana
- Solana Cookbook
- The Complete Guide to Full Stack Solana Development with React, Anchor, Rust, and Phantom
- Anchor - Getting Started
- Create a Solana dApp from scratch
- Metaplex Docs
- Official Rust Book
- Rust by Example
- Rust 101
- Rust Language Cheat Sheet
- Tour of Rust
- Easy Rust
- A Gentle Introduction to Rust
- Rust Learning Github Repo
Happy Coding ❤️
- Chai Phonbopit