SOLNM
  • Introduction
  • Technology
    • CMv3 & UI
    • Dapp
    • Wallet adapter
    • WebSockets
    • React app
    • Web3.js
    • Metaplex
    • Mpl Candy Machine
    • JSON-RPC
    • Geyser plugin postgres
  • Drops
    • Basic Drop
    • Plus Drop
    • Advanced Drop
  • NFT Tickets solution
  • NFT Payments
  • Collect Whitelists
  • NFT assets
  • Fees and Commission
  • SOLPAD PASS
  • SOLNM SPL Token
  • Airdrop
  • Whitepaper
  • Roadmap
  • FAQ
  • Terms
  • Privacy
  • Jobs
    • Affiliate Marketing
  • Linkedin
  • Twitter
  • Telegram
  • Discord
  • Github
Powered by GitBook
On this page
  • Getting Started
  • Installation
  • Build and Run
  • Features
  • Contributing
  • Learn More Next Js
  • Deploy on Vercel
  1. Technology

Dapp

PreviousCMv3 & UINextWallet adapter

Last updated 1 year ago

Getting Started

This is a project bootstrapped with .

The responsive version for wallets and wallet adapters may not function or work as expected for mobile based on plugin and wallet compatibility.

Installation

npm install
# or
yarn install

Build and Run

Next, run the development server:

npm run dev
# or
yarn dev

Open 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.

can be accessed at . This endpoint can be edited in pages/api/hello.ts.

Features

Each Scaffold will contain at least the following features:

Wallet Integration with Auto Connect / Refresh

State Management

Components: One or more components demonstrating state management

Web3 Js: Examples of one or more uses of web3 js including a transaction with a connection provider

Sample navigation and page changing to demonstrate the state

Clean Simple Styling 

Notifications (optional): Example of using a notification system

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.

├── public: publically hosted files
├── src: primary code folders and files 
│   ├── Components: should house anything considered a reusable UI component
│   ├── contexts`: any context considered reusable and useful to many components 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 metadata 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 within
style, package, configuration, and other project files

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:

  1. Make a draft PR referencing the issue.

The general flow for making a contribution:

  1. Fork the repo on GitHub

  2. Clone the project to your own machine

  3. Commit changes to your own branch

  4. Push your work back up to your fork

  5. 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!

Learn More Next Js

To learn more about Next.js, take a look at the following resources:

Deploy on Vercel

The pages/api the directory is mapped to /api/*. Files in this directory are treated as instead of React pages.

for the task and assign it to yourself or comment on the issue

You can find tasks on the or create an issue and assign it to yourself.

- learn about Next.js features and API.

- an interactive Next.js tutorial.

You can check out - your feedback and contributions are welcome!

The easiest way to deploy your Next.js app is to use the from the creators of Next.js.

Check out our for more details.

Fork from
Next.js
create-next-app
http://localhost:3000
API routes
http://localhost:3000/api/hello
API routes
Add an issue
project board
Next.js Documentation
Learn Next.js
the Next.js GitHub repository
Vercel Platform
Next.js deployment documentation