focusing on handle voxel, voxel NFT and actual 3D model of voxel NFT by 3D printer.
-
Prerequisites: Node (v16 LTS) plus Yarn and Git
-
clone/fork WeLightProject/Tai-Shang-Voxel-Handler:
git clone https://github.com/WeLightProject/Tai-Shang-Voxel-Handler.git
- install and start your Hardhat chain:
cd Tai-Shang-Voxel-Handler
yarn install
yarn chain
- in a second terminal window, start your frontend:
cd Tai-Shang-Voxel-Handler
yarn start
- in a third terminal window, deploy your contract:
cd Tai-Shang-Voxel-Handler
yarn deploy
-
Open http://localhost:3000 to see the app.
-
Download MagicVoxel, use it to make something and save as voxel file.
- Upload voxel file to permaweb, login with Arweave wallet first(a json file, create first if having none).
-
Mint voxel file as NFT, you will get all required data if you totally follow the above article.
-
Run Backend, submit the order from dApp to backend.
-
Done! Enjoy and try it!