Creating Your First Anchor Project
Chapter 3: Creating Your First Anchor Project
Let’s create a new Anchor project to explore its structure.
Command
anchor init blueshift_anchor_vault
Project Structure
programs/
: Rust code for the program.tests/
: Test files.Anchor.toml
: Configuration file.
Page Layout:
Header: Fixed top bar with "Solana Learn" logo, navigation, and profile icon.
Main Content:
Left Panel (50%): This text content.
Right Panel (50%): File tree visualization.
Footer: Link to Anchor Project Docs.
Visuals:
File Tree:
programs/
,tests/
,Anchor.toml
.Icons:
.rs
(Rust),.toml
(Config).
Interactivity:
Click file names to see contents in a modal.
Last updated