- 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
- Clone the repo
git clone git@github.com: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