EthDen: Publish dynamic IPFS buckets on Textile (easiest Bounty here)

ipfs Feb 14, 2020

Update: Buckets have gotten a major update. CLI examples below have been changed. To get the latest, check out the new Buckets documentation.

Textile is at EthDenver with a few new, shiny products for you to play with. The first one we'd like to share is a project called Buckets.

Dynamic Buckets pinned IPFS

If you are working with a team this year at EthDen, one of the easiest ways for you to pin and manage folders of assets, entire websites, or data on IPFS is by using Textile's new Buckets API and Dashboard.

  1. Buckets are dynamic folders synced over IPFS using the open data protocol, Threads.
  2. All data in a Bucket is pinned as fully functional DAGs on remote IPFS nodes.
  3. Any Bucket you create can be updated and modified by multiple owners (teams).
  4. Each Bucket has a static URL to share and explore the data.
  5. Each Bucket has a static URL for web rendering. Meaning you can publish fully functional websites and web-apps on a free domain.
  6. Buckets are free for EthDen hackers.

Getting Started with Buckets

Download the Textile CLI, create an account, team, project, and bucket.

Install the Textile CLI

  1. Head over to the Textile release page and grab the build for your laptop.
  2. Unzip or Untar the download file. Move the textile binary to your path (or use the install script to do it for you.

Create an account.

We use an email-based, passwordless login and account create. Just enter your email and await the verification email which will contain a confirmation link. Click the link and you are good to go.

The default account is your personal account on Textile. You should create a team so you can start inviting your co-hackers.

  1. textile whoami to check which context you are in.
  2. textile team add uniqueteamnamehere to create your new team.
  3. textile switch and select your new team.
  4. textile team invite and you'll be prompted for an email for your team member.

Next, you'll want to create a project to manage with you team. Projects are scoped to a directory and will create a small hidden config file right in the folder you initialize the project in. This allows you to move around projects by change changing directories. Create a project,

  1. mkdir -p somedirtouse create a directory for a project, or CD into an existing repo.
  2. cd somedirtouse
  3. textile project init someprojectname project names are unique, so pick a good one.

Now, you can start creating Buckets in your project. Your team will be able to see and pull them immediately.

  1. mkdir -p testbucket to create a folder in your project for your first bucket.
  2. echo "Hello Ethden." > testbucket/index.html add a file to your folder to push to a bucket.
  3. textile bucket push testbucket/* someuniquename bucket names are unique, so pick a good one.
  4. Visit your bucket dashboard at https://cloud.textile.io/dashboard/<projectname>/<bucketname>. The Bucket URL is static, meaning you and your team can push updates and quickly view the live content.
The one I just created: https://cloud.textile.io/dashboard/someprojectname/someuniquename

This Bucket is special, because it contains an index.html, I can also render it as a real website. To visit the live URL for site rendering, just go to the URL,

https://<bucketname>.textile.cafe/

Here's mine: https://someuniquename.textile.cafe/

Win some Bounties!

There are a bunch of Bounties this year and some you are able to win simply by using Buckets to launch parts of your hack on IPFS! Check them out here, https://alchemy-xdai.daostack.io/dao/0x993c67b8830dac1bfda09e8be0dce8553cf84271/scheme/0xcb99e740cbbe2c293923c4032ea7b5beb5dae9260d9375a247cbd1c83c09b4aa

Here is a Bounty you can win just by using Buckets: https://alchemy-xdai.daostack.io/dao/0x993c67b8830dac1bfda09e8be0dce8553cf84271/proposal/0xf12dd3a509543a9212e96093f295ffeb918f05bfa6e1906873718070645306f5

If you want to learn more ways to use Textile this weekend (dynamic databases in your app, hosted IPFS, and more), take a look at our Bounty guide here, https://blog.textile.io/ethden-2020-textile-bounty-resources/

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.