Skip to main content

Deploying to Fleek

Introductionโ€‹

In this 5 step guide, we'll walk you through how to deploy your Polywrap wrap to Fleek so that other apps could integrate it into their apps!

Table of Contentsโ€‹

Click to expand

What is Fleek?โ€‹

Fleek is the easiest way to build, deploy, and host websites & apps on IPFS Fleek provides one seamless workflow with everything you need to build fast, modern sites & web apps hosted on IPFS.

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

Your build folder should be generated now. Copy and paste the ./polywrap.meta.yaml and ./meta files into the build folder.

Step 4. Upload the build folder to Fleekโ€‹

Make sure you signup for a Fleek account.

  • On the left-hand side menu of your Fleek.
  • Account page, click on the "Storage" link.

Fleek Step 1

  • Then, click "Create Folder"

Example: Gm-Polywrap

Fleek Step 2

  • Click Confirm to create the folder

Fleek Step 3

  • Click the Folder
  • After that, click "Upload"

Fleek Step 4

  • Select the contents of your build folder onto Fleek.

Fleek Step 5

  • Click Confirm.

Fleek Step 6

tip

Due to the current Filecoin deal size limitation, files are batched together across Fleek products and uploaded as one Filecoin

So it might take 24-48 hours, depending on Fleek usage, for content to appear in ipfs

Step 5. Verifying the package on IPFSโ€‹

Click the "Verify on IPFS" button.

You will get an IPFS hash!

For an example of what you should see, visit this IPFS link.

Now that you have the IPFS hash, you can use it as a value in the URI property of your Polywrap queries to access the functions in this wrap.

You can also register an ENS domain and have it resolved to this IPFS content.

๐ŸŽ‰ Congratulations ๐ŸŽ‰ on deploying to Fleek!