- Notifications
You must be signed in to change notification settings - Fork1k
Scaffolding for a dapp built on Solana
License
solana-labs/dapp-scaffold
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The Solana dApp Scaffold repos are meant to house good starting scaffolds for ecosystem developers to get up and running quickly with a front end client UI that integrates several common features found in dApps with some basic usage examples. Wallet Integration. State management. Components examples. Notifications. Setup recommendations.
| Responsive | Desktop |
|---|---|
![]() | ![]() |
This is aNext.js project bootstrapped withcreate-next-app.
The responsive version for wallets and wallet adapter may not function or work as expected for mobile based on plugin and wallet compatibility. For more code examples and implementations please visit theSolana Cookbook
npm install# oryarn installNext, run the development server:
npm run dev# oryarn devOpenhttp://localhost:3000 with your browser to see the result.
You can start editing the page by modifyingpages/index.tsx. The page auto-updates as you edit the file.
API routes can be accessed onhttp://localhost:3000/api/hello. This endpoint can be edited inpages/api/hello.ts.
Thepages/api directory is mapped to/api/*. Files in this directory are treated asAPI routes instead of React pages.
Each Scaffold will contain at least the following features:
Wallet Integration with Auto Connec / RefreshState ManagementComponents: One or more components demonstrating state managementWeb3 Js: Examples of one or more uses of web3 js including a transaction with a connection providerSample navigation and page changing to demonstate stateClean Simple Styling Notifications (optional): Example of using a notification systemA Solana Components Repo will be released in the near future to house a common components library.
The scaffold project structure may vary based on the front end framework being utilized. The below is an example structure for the Next js Scaffold.
├── public : publically hosted files├── src : primary code folders and files │ ├── components : should house anything considered a resuable UI component│ ├── contexts` : any context considered reusable and useuful to many compoennts that can be passed down through a component tree│ ├── hooks` : any functions that let you 'hook' into react state or lifecycle features from function components│ ├── models` : any data structure that may be reused throughout the project│ ├── pages` : the pages that host meta data and the intended `View` for the page│ ├── stores` : stores used in state management│ ├── styles` : contain any global and reusable styles│ ├── utils` : any other functionality considered reusable code that can be referenced│ ├── views` : contains the actual views of the project that include the main content and components withinstyle, package, configuration, and other project filesAnyone is welcome to create an issue to build, discuss or request a new feature or update to the existing code base. Please keep in mind the following when submitting an issue. We consider merging high value features that may be utilized by the majority of scaffold users. If this is not a common feature or fix, consider adding it to the component library or cookbook. Please refer to the project's architecture and style when contributing.
If submitting a feature, please reference the project structure shown above and try to follow the overall architecture and style presented in the existing scaffold.
To choose a task or make your own, do the following:
- Add an issue for the task and assign it to yourself or comment on the issue
- Make a draft PR referencing the issue.
The general flow for making a contribution:
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making apull request!
You can find tasks on theproject boardor create an issue and assign it to yourself.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check outthe Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use theVercel Platform from the creators of Next.js.
Check out ourNext.js deployment documentation for more details.
About
Scaffolding for a dapp built on Solana
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.

