← Back to templates
Fullstack Boilerplate

gill-next-tailwind-basic
This is a Next.js app containing:
- Tailwind and Shadcn UI for styling
- Gill Solana SDK
- Shadcn Wallet UI components
- A basic Greeter Solana program written in Anchor
- codama to generate a JS sdk for the program
- UI components for interacting with the program
Getting Started
Installation
Download the template
npx create-solana-dapp@latest -t gh:solana-foundation/templates/gill/gill-next-tailwind-basicInstall Dependencies
npm installApps
anchor
This is a Solana program written in Rust using the Anchor framework.
Commands
You can use any normal anchor commands. Either move to the anchor directory and run the anchor command or prefix the
command with npm run, eg: npm run anchor.
Sync the program id:
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 anchor/src/basic-exports.ts file.
npm run setupBuild the program:
npm run anchor-buildStart the test validator with the program deployed:
npm run anchor-localnetRun the tests
npm run anchor-testDeploy to Devnet
npm run anchor deploy --provider.cluster devnetweb
This is a React app that uses the Anchor generated client to interact with the Solana program.
Commands
Start the app
npm run devBuild the app
npm run build