Deploying to CRUST Files
Introductionโ
In this 5 step guide, we'll walk you how to deploy your Polywrap wrap using the Crust Files
.
so that other apps could integrate it into their apps!
Table of Contentsโ
Click to expand
What you need to get started:โ
- We'll be using the Polywrap Demos repo for this guide.
- ๐ Node. js
- ๐ Metamask
- ๐ฅ Crust Network
- ๐ณ Docker
- ๐งถYarn
- Versions:
node >=10.0.0
oryarn >=1.0.0
- Versions:
- ๐ธ Git
Step 1. Clone the polywrap demo projectโ
git clone https://github.com/polywrap/demos.git
Step 2. Git pull metadataโ
Then, we will check out the demo branch with the metafiles already set up:
git pull origin polywrap-metadata
Step 3. Build the wrapโ
Now, we can build the sample wrap with the following commands:
nvm use
yarn
yarn build
Step 4. Upload the build folder to Crust Networkโ
- Make sure you signin using a wallet
Metamask
.
- Click
Public
- Click
Upload
- Upload the build folder then Click Upload
- Click
Sign and Upload
- Your wallet will ask for a signature request
- Click
Sign
- The page should look like this:
Step 5. Verifying the package on IPFSโ
You will get an IPFS hash!
This will lead you to IPFS link:
https://gw.crustapps.net/ipfs/QmVtFE8ScFUv6b4vUrfrNsEGuUunF4rFckjaRcDxb6xayq?filename=build
๐ Congratulations ๐ on deploying using the Crust Files!