本项目为元宇宙区块链3D相关
- block-chain 区块链
- block-chain-use 链端(合约)、网关中心(协调、管理)
- client 网站客户端(内容、浏览、支付)
$ npm install
npm run dev
$ cd client
# development
$ npm run dev
$ cd chain
# compile contract
$ hardhat compile
# contract test
$ hardhat test
# deploy contract
$ hardhat run scripts/deploy.js
# start a chain node
$ hardhat node
# deploy contract to local node for develop
$ hardhat run scripts/deploy.js --network localhost
# generate database
$ npm run db:generate
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
+(()=>throw new Emotion("Happy"))