This is a Next.js app containing:
- Tailwind and Shadcn UI for styling
- Gill Solana SDK
- Shadcn Wallet UI components
- A basic Counter Solana program written in Anchor
- codama to generate a JS sdk for the program
- UI components for interacting with the program
npx create-solana-dapp@latest -t gh:solana-foundation/templates/gill/token-vestingnpm installThis is a Solana program written in Rust using the Anchor framework.
You can use any normal anchor commands. Either move to the anchor directory and run the anchor command or prefix the
command with npm, eg: npm run anchor.
Running this command will create a new keypair in the anchor/target/deploy directory and save the address to the
Anchor config file and update the declare_id! macro in the ./src/lib.rs file of the program. This will also update
the constant in the anchor/src/counter-exports.ts file.
npm run setupnpm run anchor-buildnpm run anchor-localnetnpm run anchor-testnpm run anchor deploy --provider.cluster devnetThis is a React app that uses the Anchor generated client to interact with the Solana program.
Start the app
npm run devBuild the app
npm run build