Skip to main content

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:โ€‹

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.

Crust Files Step 1

  • Click Public

Crust Files Step 2

  • Click Upload

Crust Files Step 3

  • Upload the build folder then Click Upload

Crust Files Step 4

  • Click Sign and Upload

Crust Files Step 5

  • Your wallet will ask for a signature request
  • Click Sign

Crust Files Step 6

  • The page should look like this:

Crust Files Step 7

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

Crust Files Step 8

๐ŸŽ‰ Congratulations ๐ŸŽ‰ on deploying using the Crust Files!