Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```