MCPcopy Index your code
hub / github.com/dabit3/complete-guide-to-full-stack-solana-development

github.com/dabit3/complete-guide-to-full-stack-solana-development @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
18 symbols 38 edges 18 files 0 documented · 0% updated 2y ago★ 4908 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

The Complete Guide to Full Stack Solana Development with React, Anchor, Rust, and Phantom

Code examples to go with the blog post available here

Header image

Prerequisites

  1. Node.js - I recommend installing Node using either nvm or fnm

  2. Solana Tool Suite - You can see the installation instructions here. note - I had a very hard time getting everything working on an M1 Mac, mainly solana-test-validator and cargo-build-bpf. I finally figured it out, and posted my solution here. I'm sure at some point this will be fixed and work out of the box.

  3. Anchor - Anchor installation was pretty straight-forward for me. You can find the installation instructions here.

  4. Solana browser wallet - I recommend Phantom, which is what I have tested this app with.

To build

  1. Clone the repo
git clone git@github.com:dabit3/complete-guide-to-full-stack-solana.git
  1. Change into the project directory you'd like to run

  2. Install the dependencies

npm install
  1. Start a local Solana node
solana-test-validator
  1. Build the anchor project
anchor build
  1. Fetch the project ID for the build:
solana address -k target/deploy/<programname>-keypair.json
  1. Update the project ID in the Rust program located at projectname/programs/src/programname.rs with the output from above.

  2. Run the tests

anchor test
  1. Change into the app directory and install the dependencies:
cd app && npm install
  1. Run the client-side app
npm start

Core symbols most depended-on inside this repo

getProvider
called by 2
example2/app/src/App.js
getProvider
called by 2
example1/app/src/App.js
reportWebVitals
called by 1
example2/app/src/reportWebVitals.js
reportWebVitals
called by 1
example1/app/src/reportWebVitals.js
initialize
called by 0
example2/programs/example2/src/lib.rs
update
called by 0
example2/programs/example2/src/lib.rs
initialize
called by 0
example2/app/src/App.js
update
called by 0
example2/app/src/App.js

Shape

Function 12
Class 6

Languages

Rust56%
TypeScript44%

Modules by API surface

example2/programs/example2/src/lib.rs5 symbols
example1/programs/example1/src/lib.rs5 symbols
example2/app/src/App.js3 symbols
example1/app/src/App.js3 symbols
example2/app/src/reportWebVitals.js1 symbols
example1/app/src/reportWebVitals.js1 symbols

For agents

$ claude mcp add complete-guide-to-full-stack-solana-development \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact