Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruferdz/solana-fullstack-dapp
The Complete Guide to Full Stack Solana Development with React, Anchor, Rust, and Phantom.
https://github.com/ruferdz/solana-fullstack-dapp
anchor phantom react rust solana
Last synced: 17 days ago
JSON representation
The Complete Guide to Full Stack Solana Development with React, Anchor, Rust, and Phantom.
- Host: GitHub
- URL: https://github.com/ruferdz/solana-fullstack-dapp
- Owner: RuFerdZ
- Created: 2021-12-24T11:17:30.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-24T11:28:02.000Z (about 3 years ago)
- Last Synced: 2024-11-19T05:05:56.685Z (3 months ago)
- Topics: anchor, phantom, react, rust, solana
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Introduction to Solana
Project Overview
Project Structure
In this project, you'll see four main folders (in addition to the node_modules):
-
app - Where our frontend code will go -
programs - This is where the Rust code lives for the Solana program -
test - Where the JavaScript tests for the program live -
migrations - A basic deploy script
To build
1. Clone the repo
```sh
git clone [email protected]:dabit3/complete-guide-to-full-stack-solana.git
```
2. Change into the project directory you'd like to run
3. Install the dependencies
```sh
npm install
```
4. Start a local Solana node
```sh
solana-test-validator
```
5. Build the anchor project
```sh
anchor build
```
6. Fetch the project ID for the build:
```sh
solana address -k target/deploy/-keypair.json
```
6. Update the project ID in the Rust program located at __projectname/programs/src/programname.rs__ with the output from above.
7. Run the tests
```sh
anchor test
```
8. Change into the __app__ directory and install the dependencies:
```sh
cd app && npm install
```
9. Run the client-side app
```sh
npm start
```