1. 克隆仓库
  2. yarn install
  3. yarn run dev 就可以使用了

如需从0自己安装:

创建React & nextJs 工程

https://nextjs.org/learn/basics/create-nextjs-app/setup

  1. yarn create next-app
    然后yarn dev就可以打开网页了

添加tailwind

https://tailwindcss.com/docs/guides/nextjs

  1. yarn add --dev tailwindcss postcss autoprefixer
  2. yarn tailwindcss init -p
  3. 设置tailwind

添加web3uikit

  1. npm install @web3uikit/core @web3uikit/web3 @web3uikit/icons
  2. yarn install

安装 styled-components

  1. yarn add styled-components
  2. yarn add -dev babel-plugin-styled-components
  3. 将_document.js copy过来

开启自动格式化

https://www.jianshu.com/p/b0f1fc194663?u_atoken=9674f03c-8dbc-4124-8016-cf090abde3b4&u_asession=01gb0ueUKVU4hI3Df71_vmcw546POvzAA1aoCr0m8xaNKRLTveMsFSlXTx72R7pnfTX0KNBwm7Lovlpxjd_P_q4JsKWYrT3W_NKPr8w6oU7K9WreUWaiAa2-_J7JJXxDjPCvvWHyhA8I9G3hxoTho1LGBkFo3NEHBv0PZUm6pbxQU&u_asig=05CjAbRIhQ-YGOcSOjfs7Wtbo9p8dBFlZAzwcRcY0gFvFW3tiJj5CVI2-_RrqAU88iAc9oI71pCKY3E_TUL2TpA42DoeZnfNvhaKEWot9fhp0uTf01-v11Y75PyAXvUqSZyBy1EwTF1FZrkJbgf37DGzPNwYHcAl6l3PzY8NKZ9xX9JS7q8ZD7Xtz2Ly-b0kmuyAKRFSVJkkdwVUnyHAIJzTn7mEwMSDYVq7D9kHic9cPPayp6UPyriZPR_V6SuWOmChTz2MQxpCmDDGYlh3aZze3h9VXwMyh6PgyDIVSG1W8H7lyQTFJ14sr53oss-d8rvcob-3mcfVCNS-ach8kgLoASPQynfctDLqEfiXRFqWYdFy1rlmcbQZDWSdHl5ZnmmWspDxyAEEo4kbsryBKb9Q&u_aref=Pb2wEN8rdj%2B8VZ3wzGprpB2duFY%3D

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

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

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.

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.