Things I learnt
- Solana architecture
- Rust basics
- Anchor framwork
- Vue.js framwork
- Solana tool suite
-
Node.js - Install Node using either nvm or fnm
-
Solana Tool Suite - Installation instructions here. M1 Mac users troubleshoot info here
-
Anchor - Installation instructions here.
-
Solana browser wallet - I use Phantom
Clone the repo
git clone https://github.com/laiweileeee/solana-twitter.git
Change into the project directory you'd like to run
Install the dependencies
yarn 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 solana-twitter/programs/solana-twitter/src/lib.rs with the output from above.
Run the tests
anchor test
Change into the app directory and install the dependencies:
cd app && yarn install
Run the client-side app
yarn start