Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thuglabs/create-dapp-solana-nextjs
Scaffolding for a Solana dapp using TS, Next.JS, Tailwinds CSS, and Daisy UI
https://github.com/thuglabs/create-dapp-solana-nextjs
blockchain boilerplate dapps solana
Last synced: 2 months ago
JSON representation
Scaffolding for a Solana dapp using TS, Next.JS, Tailwinds CSS, and Daisy UI
- Host: GitHub
- URL: https://github.com/thuglabs/create-dapp-solana-nextjs
- Owner: thuglabs
- License: mit
- Created: 2021-10-14T19:32:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T13:23:26.000Z (almost 2 years ago)
- Last Synced: 2024-09-28T09:42:51.449Z (3 months ago)
- Topics: blockchain, boilerplate, dapps, solana
- Language: TypeScript
- Homepage: https://create-dapp-solana-nextjs.vercel.app
- Size: 2.75 MB
- Stars: 359
- Watchers: 6
- Forks: 181
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - thuglabs/create-dapp-solana-nextjs - Scaffolding for a Solana dapp using TS, Next.JS, Tailwinds CSS, and Daisy UI (TypeScript)
- awesome-solana-nfts - Create Solana Dapp - Scaffolding for a Solana dapp using TS, Next.JS, Tailwinds CSS, and Daisy UI. (🙏 Community-built Tools / Dapp Boilerplates)
- awesome-solana-nfts-v2 - Create Solana Dapp - Scaffolding for a Solana dapp using TS, Next.JS, Tailwinds CSS, and Daisy UI. (🙏 Community-built Tools / Dapp Boilerplates)
README
# Create Solana Dapp with Next.JS
Want to start develop with Solana fetching NFTs from the blockchain or power-up your [Anchor](https://project-serum.github.io/anchor/getting-started/introduction.html) app with UI?
This boilerplate can be used to setup your UI with React.JS / Next.JS and deploy it to [Vercel Platform](https://vercel.com/) in just a minutes.https://user-images.githubusercontent.com/188568/152035121-400a89b2-a5f7-4dca-9abd-b5991dc99f2c.mp4
## 🛵 ◍ Demo: https://create-dapp-solana-nextjs.vercel.app/
This project includes:
- Next.JS
- TypeScript
- [@solana/wallet-adapter](https://github.com/solana-labs/wallet-adapter) and [@solana/web3.js](https://solana-labs.github.io/solana-web3.js) for interactions with wallets & blockchain.
- Tailwind CSS (with [daisyUI](https://daisyui.com/))## Getting Started
First, run the development server:
```bash
yarn
yarn run dev
```// TODO
If you deploy new Candy Machine you can update UI config here: `./src/config/candy-machine.config.js`.## Style
[Tailwind CSS](https://tailwindcss.com/) or [daisyUI](https://daisyui.com/) are selected tools for rapid style development.
You can quickly change theme changing `daisy.themes` within `./tailwind.config.js`.
More info here: https://daisyui.com/docs/default-themesThis 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](https://nextjs.org/docs/basic-features/built-in-css-support).
Anyway, if you want to connect LESS there is example code in `./next.config.js`## 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.### Possible Issues
- You might [need to overwrite default output derictory](https://github.com/thuglabs/create-dapp-solana-nextjs/issues/23) for vercel settings if you see [`Routes Manifest Could Not Be Found
`](https://github.com/vercel/vercel/blob/main/errors/now-next-routes-manifest.md) error.## Templates
This boilerplate includes some templates you may find useful:
- NFT Gallery Template
- UI for Anchor app (Anchor program based on [this tutorial](https://lorisleiva.com/create-a-solana-dapp-from-scratch))