Skip to content

RuFerdZ/Solana-fullstack-Dapp

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published