- Follow this guide to install all the needed software
- Clone this repo:
git clone https://github.com/JuanMarchetto/solana-4-in-line.git
- Run a local validator
solana-test-validator
- Open another terminal, cd into the project's folder and install dependencies
cd solana-4-in-line && yarn
- Build the program
anchor build
- Set correct program id
anchor keys list
replace all ocurrences of Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS with the resulting key and save the files - Set localhost as target
solana config set --url http://localhost:8899
- Create a dev CLI wallet
solana-keygen new -o "~/.config/solana/id.json"
- Airdrop some fake SOL to that wallet
solana airdrop 10 "~/.config/solana/id.json"
- Deploy and run tests
anchor test --skip-local-validator
If all test pass you are all set up
- set the endpoint to localhost in
app/src/pages/_app.tsx
- run
cd app && yarn && yarn dev