Table of Contents
This repository contains the code for a minting dApp for a NFT collection
This is a Next.js project bootstrapped with create-next-app
.
- Clone the repo
git clone https://github.com/trashpirate/minting-dapp.git
- Navigate to the project directory
cd minting-dapp
- Install NPM packages
npm install
Before running any commands, create a .env file and add the following environment variables. These are configured for BNB and BASE chain:
# dapp configs
NEXT_PUBLIC_PROJECT_NAME="Title"
NEXT_PUBLIC_PROJECT_ID="Project Id from WalletConnect" # https://cloud.walletconnect.com/app
NEXT_PUBLIC_PROJECT_DESCRIPTION="Description"
NEXT_PUBLIC_TOKEN_SYMBOL="BEP-20 Token Symbol"
# chain configs
NEXT_PUBLIC_ALCHEMY_API_KEY=<your API key> # https://www.alchemy.com/
NEXT_PUBLIC_ENABLE_TESTNET=true # toggles to use testnet configuration or base
# smart contract configs (toggle these to switch between testnet and base)
NEXT_PUBLIC_RPC_URL="RPC URL" # e.g. https://www.ankr.com/ or https://www.alchemy.com/ (depends on chains and your preference)
NEXT_PUBLIC_RPC_DESTINATION="RPC URL" # e.g. https://www.ankr.com/ or https://www.alchemy.com/ (depends on chains and your preference)
NEXT_PUBLIC_TOKEN_CONTRACT="Contract Address"
NEXT_PUBLIC_NFT_CONTRACT="Contract Address"
NEXT_PUBLIC_NFT_CONTRACT="Contract Address"
NEXT_PUBLIC_DESTINATION_MINTER_CONTRACT="Contract Address"
#### Run development server:
```bash
# development
$ npm next dev
# production mode
$ npm next start
Open http://localhost:3000 with your browser to see the result.
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.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Nadina Oates - @N0_crypto
Main Repository: https://github.com/trashpirate/queens
Project Link: https://0x52.buyholdearn.com/