A basic factory starter template.
These instructions will give you a copy of the project up and running on your local machine for development and testing purposes.
Install JavaScript dependencies
yarn install OR npm install
Setup your environment variables
cp .env.local.example .env.local
Variable | Description |
---|---|
NEXT_PUBLIC_CHAIN_ID |
This is the chain id of the network you want to connect to. Open Format currently supports Polygon Mainnet (137) and Polygon Mumbai (80001) |
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_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 |
yarn run dev
This will run the app in the development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
Have a question? Join us on Discord
This project was created using NextJS.
Find out more about the packages used in this project: