Create Solana Dapp with Next.JS
Want to start develop with Solana fetching NFTs from the blockchain or power-up your Anchor app with UI?
This boilerplate can be used to setup your UI with React.JS / Next.JS and deploy it to Vercel Platform in just a minutes.
This project includes:
- @solana/wallet-adapter and @solana/web3.js for interactions with wallets & blockchain.
- Tailwind CSS (with daisyUI)
First, run the development server:
yarn yarn run dev
// TODO If you deploy new Candy Machine you can update UI config here:
You can quickly change theme changing
./tailwind.config.js. More info here: https://daisyui.com/docs/default-themes
This app encourage you to use CSS Modules over other style technics (like SASS/LESS, Styled Components, usual CSS). It have modular nature and supports modern CSS. Read more on Next.JS site. Anyway, if you want to connect LESS there is example code in
Deploy on Vercel
Before push run localy
npm run build to make sure app can be build succesffully on vercel .
Vercel will automatically create environment and deployment for you if you have vercel account connected to your GitHub account. Go to the vercel.com to connect it. Then any push to
main branch will automatically rebuild and redploy app.
This boilerplate includes some templates you may find useful:
- NFT Gallery Template
- UI for Anchor app (Anchor program based on this tutorial)