Gist a73c0a23221773fd30326753a7f840c1
✓ Published0🌍 Public
Aandrewxhill
Last edited May 18, 2020
Created on May 18, 2020
This example demonstrates how to create a user-owned file bucket and publish a generated webpage to a live URL. The code uses the Textile `Buckets` API to list existing buckets, find one named "files," and push an `index.html` file containing dynamically generated webpage content. It then renders the site at a URL derived from the bucket’s IPNS key. The example highlights the workflow of storing and hosting static files through the Textile JavaScript library, with the file content prepared via a `generateWebpage` function.
AI-generated description