Dapp
Getting Started
This is a Next.js project bootstrapped with create-next-app
.
The responsive version for wallets and wallet adapters may not function or work as expected for mobile based on plugin and wallet compatibility.
Installation
Build and Run
Next, run the development server:
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
API routes can be accessed at http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts
.
The pages/api
the directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
Features
Each Scaffold will contain at least the following features:
A Solana Components Repo will be released in the near future to house a common components library.
Structure
The scaffold project structure may vary based on the front-end framework being utilized. Below is an example structure for the Next js Scaffold.
Contributing
Anyone 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.
Committing
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 a pull request!
You can find tasks on the project board or create an issue and assign it to yourself.
Learn More Next Js
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 out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
Last updated