Skip to content

unfairDude/nextjs-nft-mint-dapp

This branch is 169 commits ahead of snax4a/nextjs-nft-mint-dapp:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 7, 2022
babb781 · May 7, 2022
Nov 27, 2021
May 7, 2022
May 6, 2022
Apr 11, 2022
Mar 22, 2022
May 7, 2022
May 7, 2022
May 7, 2022
May 7, 2022
Mar 20, 2022
Mar 25, 2022
Nov 27, 2021
Nov 27, 2021
Nov 29, 2021
Mar 25, 2022
Feb 18, 2022
May 7, 2022
Apr 9, 2022
Apr 9, 2022
Nov 27, 2021
Jan 7, 2022
Nov 27, 2021

Repository files navigation

Next.js NFT Mint dApp

A simple, fast and modern dApp for minting NFTs.

This dApp is actually used by Skulls In Love.

Required

  • MetaMask is installed in your browser
  • The networks used in your project are registered in your MetaMask

Usage

1 . Clone this repo:

git clone https://github.com/kjmczk/nextjs-nft-mint-dapp.git

2 . Change into the directory:

cd nextjs-nft-mint-dapp

3 . Install the dependencies:

npm install

4 . Set up the config file(s):

Replace the values in the config/projectConfig.ts file with yours as needed.

This dApp is by default using Mumbai Testnet for development and Polygon Mainnet for production.

If you want to use other networks (eg Ethereum Mainnet and Rinkeby Testnet), edit the config/rpcConfig.ts file as well. Then follow the steps below to set your Infura key.

1 . Get Infura API key: https://infura.io/

2 . Copy the .env.local.example file to .env.local:

cp .env.local.example .env.local

3 . Set your Infura KEY (PROJECT ID) to NEXT_PUBLIC_INFURA_KEY in .env.local

NOTE: I highly recommend setting some allowlists on the Infura dashboard to keep your Infura key secure. See the Infura doc "Use an allowlist"

Mumbai Testnet and Polygon Mainnet can use their public RPCs, but if necessary, you can also use the dedicated RPC URLs by getting your Infura key as above.

5 . Add your ABI:

Include your contract ABI in config/abi.json.

If you deployed your contract using Remix, see the Remix documentation for how to generate an ABI.

6 . Run the server:

npm run dev

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 the Next.js deployment documentation for more details.

If you deploy to a hosting provider other than Vercel, I cannot guarantee that this dApp will work properly.

Connect MetaMask Mobile

To connect to MetaMask on mobile, install MetaMask Mobile on your smartphone. You can choose to use it when you want to connect your wallet in your mobile browser. If it is not installed, you will be taken to the installation page for each store.

About

A simple, fast, and modern dApp for minting NFTs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 91.9%
  • Solidity 3.2%
  • TypeScript 2.0%
  • JavaScript 1.6%
  • HTML 1.3%