- Example App showing IPFS connectivity in React using NFT.Storage library
- Needed to use ViteJS instead of react-scripts because of webpack issues with NFT.Storage
- Get an API key from NFT.Storage
- Add API key to .env file's NFT_STORAGE_API_KEY variable
- Have NodeJS installed
- Install yarn if missing:
npm install yarn
- Run
yarn install
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
Builds the app for production to the dist
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.