Simple demo app that connects to API port of IPFS node, reads its PeerID and displays it as QR code.
Note:
⚠️ this is just a PoC, not meant for production use. Due to the way browser security model works, this example requires CORS safelisting viaAPI.HTTPHeaders.Access-Control-Allow-Origin
Demo: https://bafybeib77af5a2ymrhl2etf4hq2x32o7qs3shkaatznyjxrhnipksjkh4i.ipfs.dweb.link (needs to be appended to API.HTTPHeaders.Access-Control-Allow-Origin
)
- This requires the user to have an IPFS node running with the app Origin added to
API.HTTPHeaders.Access-Control-Allow-Origin
- Install dependencies
npm install
- Build the app
npm run build
- Start the app
npm start