Coder Social home page Coder Social logo

seanhw1 / nextjs-nft-mint-dapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snax4a/nextjs-nft-mint-dapp

0.0 0.0 0.0 756 KB

A simple, fast, and modern dApp for minting NFTs

License: MIT License

Shell 0.75% JavaScript 1.56% TypeScript 97.21% CSS 0.49%

nextjs-nft-mint-dapp's Introduction

Next.js NFT Mint dApp

A simple, fast and modern dApp for minting NFTs.

Next.js NFT Mint dApp

This dApp is designed with the assumption that Hardhat NFT Smart Contract will be used for the backend. First you need to deploy the smart contract to get the contract address and ABI. Otherwise, the dApp will not work. If you want to use your own smart contract, manually set your contract addresses (config/contract-config.json) and ABI (config/abi.json). But in that case, it can be complicated because you need to modify the source code of the dApp (some function names, configurations, etc.).

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 dependencies:

npm install

4 . Set up the env files:

Copy the .env(.*).example files to .env(.*):

cp .env.example .env
cp .env.development.example .env.development
cp .env.production.example .env.production

Replace the values in the env files with yours as needed.

5 . Set up the config file:

Replace the values in config/contract-config.json with yours. This file is shared with the backend.

6 . Make an allowlist (if needed):

Include the applicable addresses in config/allowlist.json.

7 . Other settings:

  • Replace the images in public/assets/ with yours
  • Replace the favicon files in public/favicon/ with yours (Favicon Generator)
  • You can change the global background color and text color in pages/_document.tsx
  • You can set your own default styles for specific elements in styles/globals.css (Adding Custom Styles)

8 . Run the server:

npm run dev

Deploy your dApp

  • Vercel - The easiest way to deploy your Next.js app
  • Fleek - Deploy your sites & apps on IPFS

If you're deploying your dApp to Fleek, uncomment Loader Configuration in next.config.js.

Fleek may take some time for the images to appear after deployment.

Check out the Next.js deployment documentation for more details.

nextjs-nft-mint-dapp's People

Contributors

komzweb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.