Skip to content

fishmannmsl/NFT-Dapp

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

可能需要重新部署合约

npx hardhat node
npx hardhat run scripts/deploy.js --network localhost

npm run dev
# or
yarn dev

npx create-next-app (name)

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

部分依赖包解释

npm i 
	ethers 
	hardhat                         # 编译部署合约,类似truffle
	@nomiclabs/hardhat-waffle       # waffle插件
	ethereum-waffle 				# waffle框架
	chai                            # 断言库
	@nomiclabs/hardhat-ethers 		# waffle插件	
	web3modal 
	@openzeppelin/contracts 
	ipfs-http-client 
	axios
	
	
npm i add -D 
	tailwindcss@latest 
	postcss@latest 
	autoprefixer@latest
	
npx tailwindcss init -p 			# 创建tailwindcss配置文件

Hardhat

npx hardhat							# 初始化waffle框架

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

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

Basic Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, a sample script that deploys that contract, and an example of a task implementation, which simply lists the available accounts.

Try running some of the following tasks:

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat run scripts/deploy.js --network localhost
npx hardhat help

About

React.js开发的 nft 交易所

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published