dabit3/complete-guide-to-full-stack-solana-development
关于
博客文章《使用 React、Anchor、Rust 和 Phantom 进行 Solana 全栈开发的完整指南》中的代码示例
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文The Complete Guide to Full Stack Solana Development with React, Anchor, Rust, and Phantom
Code examples to go with the blog post available here

Prerequisites
Node.js - I recommend installing Node using either nvm or fnm
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-validatorandcargo-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.Anchor - Anchor installation was pretty straight-forward for me. You can find the installation instructions here.
Solana browser wallet - I recommend Phantom, which is what I have tested this app with.
To build
- Clone the repo
git clone [email protected]:dabit3/complete-guide-to-full-stack-solana.git
Change into the project directory you'd like to run
Install the dependencies
npm install
- Start a local Solana node
solana-test-validator
- Build the anchor project
anchor build
- Fetch the project ID for the build:
solana address -k target/deploy/<programname>-keypair.json
Update the project ID in the Rust program located at projectname/programs/src/programname.rs with the output from above.
Run the tests
anchor test
- Change into the app directory and install the dependencies:
cd app && npm install
- Run the client-side app
npm start
探索相关项目
加载中…