Stream Pay App Demo is the test project for using Solana Pay easily on Solana devnet.
Mint Spl-token:
Please use mint-fungible-spl-token to mint spl-token easily.
Setup environment file:
Create .env
file from .env.example
.
cp .env.example .env
Set your environment values in .env
file
NEXT_PUBLIC_SHOP_PRIVATE_KEY=
NEXT_PUBLIC_DEVNET_NODE=
You can use Solana public rpc node such as https://api.devnet.solana.com
or use your private rpc node.
Check out RPC providers for more details.
Install dependencies:
npm install
# or
yarn install
Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
To learn more about Next.js and Stream/Solana Pay, 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.
- Solana Pay Documentation - learn about Solana Pay features and API reference.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
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.
The another way to deploy your Next.js app is to use the Netlify Platform.
Check out Next.js on Netlify for more details.