d-twitter

Make sure you’re on the localnet.

solana config set --url localhost

And check your Anchor.toml file.

Code…

Run the tests.

anchor test

Build, deploy and start a local ledger.

anchor localnet

Or

solana-test-validator
anchor build
anchor deploy

Copy the new IDL to the frontend.

anchor run copy-idl

Serve your frontend application locally.

npm run serve
yarn serve

Switch to the devnet cluster to deploy there.

solana config set --url devnet

And update your Anchor.toml file.

Airdrop yourself some money if necessary.

solana airdrop 2

Build and deploy to devnet.

anchor build
anchor deploy

Push your code to the main branch to auto-deploy on Netlify.

git push