This boilerplate is for NFT marketplace. Using this boilerplate, you can create NFT marketplace website.
Please deploy ERC721 token contract
- Click
Create Dapp
box
- Input DApp name
- Select the chain you want to deploy the contracts on.
- Search and select one of ERC721 token modules
If you have already an ERC721 token, you can skip this.
- Search and select Marketplace(NFT-ETH)
- Input token name, symbol and baseTokenURI. (If you didn't select ERC721 module, you don't need to add the token name and symbol).
- Clicking
Deploy
button, you can deploy the smart contracts using metamask wallet.
Clone this repository
git clone https://github.com/lastrust/nft-marketplace-boilerplate
cd nft-marketplace-boilerplate
yarn install
Please update src/lib/web3_constants.ts
file with the smart contract addresses you deployed.
import { BigNumber } from 'ethers';
export const Decimals = BigNumber.from(18);
export const OneToken = BigNumber.from(10).pow(Decimals);
export const ERC721TOKEN_ADDRESS = '';
export const MARKETPLACE_ADDRESS = '';
export const CHAIN_ID = ; // numeric
export const CHAIN_INFO = {
chainId: '', // hex
rpcUrls: [''],
chainName: '',
nativeCurrency: {
name: 'ETH',
symbol: 'ETH',
decimals: 18,
},
blockExplorerUrls: ['https://goerli.etherscan.io'],
};
Development mode
yarn dev
Production mode
yarn build
yarn start
Now you can use this application.
To learn more, please ask in our discord