Skip to content

open-format/open-format-nft

Repository files navigation

Open Format NFT

Open Format NFT is a web application that showcases the tooling we have designed in order for you to build your own platforms without having to worry about the complexity that can come with web3. It can be used as a starting template, a reference or an immediate implementation to get you up and running quickly.

Libraries and Frameworks

As with most things we have a preference of the following libraries to build our web apps with. The ones with the biggest learning curves are highlighted below but please feel free to add or remove them as you see fit. The only one that is a core dependency is the Open Format React SDK.

Front End Framework

Styling

  • Tailwind CSS - Tailwind CSS works by scanning all of your HTML files, JavaScript components, and any other templates for class names, generating the corresponding styles and then writing them to a static CSS file.

Forms

  • React Hook Form - Performant, flexible and extensible forms with easy-to-use validation.

Open Format SDK

  • Open Format - Build your own NFT ecosystem. Trustless, permissionless and collaborative.

Dependencies

Get up and running

Clone the repo

git clone [email protected]:simpleweb/open-format-nft.git

Install dependencies

npm install or yarn install

Setup your environment variables

cp .env.local.example .env.local
Variable Description
NEXT_PUBLIC_NFT_STORAGE_TOKEN This starter uses nft.storage to interact with IPFS. You can use any IPFS storage provider. Get an API Key
NEXT_PUBLIC_IPFS https://ipfs.io/ipfs/
NEXT_PUBLIC_FACTORY_ID This is used for filtering the subgraph to only show tokens created in specific factory frontend. This can be any string value, but for uniqueness, we recommend using UUIDv4
NEXT_PUBLIC_POLYGON_SCAN Link to the network where you can view your contracts.
NEXT_PUBLIC_EXAMPLE_NFT_LINK A link to the original creator of our example NFT.
NEXT_PUBLIC_EXAMPLE_NFT_TOKEN_ADDRESS This is the example token address we have created for you to quickly interact with. Feel free to replace this with your own once up and running.
NEXT_PUBLIC_NETWORK mumbai
NEXT_PUBLIC_PINATA_JWT_TOKEN Pinata JWT token

Run the app

npm run dev or yarn run dev

Translations

  • We have made it quick and easy to add your own copy to all of the current components using the next-translate package. The common.json file is where you can add or remove copy in order to make it sound more like you. You can also remove this package if you wish and just add everything inline.

Documentation

  • View our documentation here.

Deployments

Vercel

  • Click below to quickly get the app up on vercel.

Deploy with Vercel

View our live site

More info about Next JS deployments

Check out the Next.js deployment documentation for more details.