[go: up one dir, main page]

DEV Community

Cover image for Memoir.
farismamnoon
farismamnoon

Posted on

Memoir.

This is a submission for the The Pinata Challenge

This web application serves as a straightforward introduction to the Pinata platform. Designed to be easy to use and understand, it showcases the basic functionalities of Pinata for storing and managing files on the decentralized web.

Demo

https://memoir-frontend-tcfj.onrender.com

My Code

https://github.com/farisamamnoon/memoir

const pinata = new PinataSDK({
  pinataJwt: process.env.JWT,
  pinataGateway: process.env.GATEWAY,
  pinataGatewayKey: process.env.KEY,
});
Enter fullscreen mode Exit fullscreen mode

The pinata instance setup using environment variables.

const image = await pinata.gateways.get(cid).optimizeImage(options);
Enter fullscreen mode Exit fullscreen mode

These options come from the client which is configured to whatever container the image would be displayed to.

Image description

Top comments (0)