<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: farismamnoon</title>
    <description>The latest articles on DEV Community by farismamnoon (@farisamamnoon).</description>
    <link>https://dev.to/farisamamnoon</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1474531%2Fe257896a-5513-4ed3-8a18-27b68617b2a4.png</url>
      <title>DEV Community: farismamnoon</title>
      <link>https://dev.to/farisamamnoon</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/farisamamnoon"/>
    <language>en</language>
    <item>
      <title>Memoir.</title>
      <dc:creator>farismamnoon</dc:creator>
      <pubDate>Sun, 13 Oct 2024 08:54:10 +0000</pubDate>
      <link>https://dev.to/farisamamnoon/memoir-abh</link>
      <guid>https://dev.to/farisamamnoon/memoir-abh</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/pinata"&gt;The Pinata Challenge &lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://memoir-frontend-tcfj.onrender.com" rel="noopener noreferrer"&gt;https://memoir-frontend-tcfj.onrender.com&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  My Code
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/farisamamnoon/memoir" rel="noopener noreferrer"&gt;https://github.com/farisamamnoon/memoir&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const pinata = new PinataSDK({
  pinataJwt: process.env.JWT,
  pinataGateway: process.env.GATEWAY,
  pinataGatewayKey: process.env.KEY,
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;pinata&lt;/code&gt; instance setup using environment variables.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const image = await pinata.gateways.get(cid).optimizeImage(options);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These &lt;code&gt;options&lt;/code&gt; come from the client which is configured to whatever container the image would be displayed to.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F109bz8k8v23gtdc6lpv9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F109bz8k8v23gtdc6lpv9.png" alt="Image description" width="800" height="592"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>pinatachallenge</category>
      <category>webdev</category>
      <category>api</category>
    </item>
  </channel>
</rss>
