Why would I use this, Jim?
- Want to put things on IPFS easily.
- Love using Textile. Data on a Textile Bucket is stored on IPLD and pinned on to IPFS automatically.
- You can use any gateway to retrieve your CID. This CID is a GIF version of the NFT-linked-asset that exists for https://foundation.app/ertdfgcvb/1613493082123-355.
- [EARLY TESTING] Take your bucket and put it on the Filecoin Network with a storage deal.
- [IN PROGRESS] Easier ways to verify your Filecoin address to make verified deals.
Try it online: https://next-bucket.onrender.com
This template should provide an easy way for you to set up Textile Buckets and pin content to the IPFS network. NextJS is the logical choice because
- It is easy to learn.
- Minimal setup for maximum output.
- A lot of people know it.
- Has a story around environment variables and light server functions.
In addition, NextJS and decentralized solutions such as Magic are an awesome combination if you want to create a website such as OpenSea.
I would like it to be easy for anyone to roll their own website without the need for a separate database such as Postgres or MongoDB. If you take a poke around hopefully this is a simple enough configuration for you.
Start by cloning the repository, or by clicking on Use this template above.
git clone [email protected]:application-research/next-bucket.git
cd next-bucket
- Create a
.env.local
file.- The command:
touch .env.local
.
- The command:
- In this file you will want to include your Textile Hub keys and other secrets you don't want exposed to the client.
TEXTILE_HUB_KEY=XXX
TEXTILE_HUB_SECRET=XXX
IPFS_GATEWAY=https://ipfs.io
The easiest way to generate your user group
keys for Textile is to download the latest version of the hub
https://github.com/textileio/textile/releases/tag/v2.6.6
- Stuck? Read this: https://docs.textile.io/hub/apis/.
- Still stuck? Post an issue if you have any questions :-)
Now install dependencies and run the server.
npm install
npm run dev
Go to http://localhost:3000
in your browser of choice. Enjoy!
Be sure to follow the Filecoin Community post here.