This is a simple NFT gating application created using the Moralis solana API using the next.js framework.
Get the Solana API key from Moralis admin page
Rename the .env.local.example to .env.local and add the required API and NFT secrets.
Run yarn install to install the packages
yarn
or
yarn install
Run the development server in port 8000 as the NEXTAUTH_URL
in env.local file is set to this port. Can be updated to the required port.
yarn run dev -p 8000
Open http://localhost:8000 with your browser to see the result.
To learn more about Morlais API, take a look at Moralis Docs.
To get you questions answered reach out to Moralis forum or discord
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.
- Learn NextAuth.js - open-source authentication solution for Next.js applications.