Skip to content

andy-li/solana-next-template

 
 

Repository files navigation

Solana dApp Template with Next.js

License

This repository provides a template for building decentralized applications (dApps) on the Solana ecosystem using the Next.js framework. It aims to streamline the development process by including essential packages commonly used in Solana dApp development. Also includes the basic wallet setup and a few extra components for convenient handling of NFTs.

TODO

  • NFT Gallery: showcase NFTs owned by user.
  • Improve default theme/add dark theme

Components

  • Header w/ MobileMenu and wallet connection button.
  • NFT Select.

Packages included

  • Next.js: A popular React framework for server-rendered applications.
  • @solana/web3.js: Solana's JavaScript library for interacting with the Solana blockchain.
  • @metaplex-foundation/js: A collection of JavaScript libraries for building NFT and decentralized marketplace applications on the Solana network.
  • @headlessui/react: A set of completely unstyled, fully accessible UI components for building user interfaces.
  • @heroicons/react: A set of icons designed for use with React.
  • Prettier: A code formatter that ensures consistent code style and readability.
  • Tailwind CSS: A utility-first CSS framework for rapidly building custom user interfaces.
  • TypeScript: A statically typed superset of JavaScript that enables better code organization and helps catch errors early.

Getting Started

Follow the steps below to set up your Solana dApp using this template:

  1. Clone this repository to your local machine.
  2. Install the dependencies by running pnpm install.
  3. Customize the project according to your dApp's requirements (start at app/page.tsx).
  4. Start the development server with pnpm run dev.
  5. Access your dApp in a web browser at http://localhost:3000.

Resources

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please create an issue or submit a pull request.

About

Next.js template for Solana dApps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.5%
  • JavaScript 5.6%
  • CSS 2.9%