Next.js frontend for dReader dapp on Solana
First, make sure your node version matches the one specified in .nvmrc
Install dependencies and copy the .env.example
content into .env
:
npm install & cp .env.example .env.local
Then start the app:
npm run dev
Open http://localhost:3000 with your browser to see the result.
NEXT_PUBLIC_SOLANA_CLUSTER
can be eithermainnet-beta
,testnet
ordevnet
. Rule of thumb is to usedevnet
on localhost development, andmainnet-beta
for production applicationsNEXT_PUBLIC_SOLANA_RPC_NODE_ENDPOINT
is necessary for application to be able to execute any blockchain-specific actions. Not all nodes are reliable 100% of time so it's best to be aware of alternatives! If your default Solana node is underperforming, feel free to find a new one here. To understand limitations of the default node check out official Solana RPC endpoint documentation
When contributing please follow the guidelines specified in the CONTRIBUTING document