- A new project can be generated with:
npx create-solana-dapp@latest
- Install dependencies:
npm install
- Run the following to create a new key pair inside
./anchor/target/deploy
:
npm run anchor keys sync
npm run anchor-build
npm run anchor-test
npm run build
npm run dev
- Start the validator in another window with
solana-test-validator
, and then run:
npm run anchor deploy