Skip to content
/ next-bucket Public template

A template to start a project easily with NextJS and Textile Buckets

Notifications You must be signed in to change notification settings

johndpope/next-bucket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

template

next-bucket

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.

Introduction

Try it online: https://next-bucket.onrender.com

deals-made-2

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.

Setup (MacOS)

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.
  • 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

Now install dependencies and run the server.

npm install
npm run dev

Go to http://localhost:3000 in your browser of choice. Enjoy!

How do I follow development?

Be sure to follow the Filecoin Community post here.

About

A template to start a project easily with NextJS and Textile Buckets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published