<?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: Fuego Blanco </title>
    <description>The latest articles on DEV Community by Fuego Blanco  (@fuegoblanco).</description>
    <link>https://dev.to/fuegoblanco</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%2F1086406%2F19edd90f-4d58-4793-94ff-6d17aef9281d.png</url>
      <title>DEV Community: Fuego Blanco </title>
      <link>https://dev.to/fuegoblanco</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fuegoblanco"/>
    <language>en</language>
    <item>
      <title>Wrapping a dApp</title>
      <dc:creator>Fuego Blanco </dc:creator>
      <pubDate>Mon, 22 May 2023 07:39:41 +0000</pubDate>
      <link>https://dev.to/fuegoblanco/wrapping-a-dapp-11fa</link>
      <guid>https://dev.to/fuegoblanco/wrapping-a-dapp-11fa</guid>
      <description>&lt;p&gt;In the ever-evolving world of web applications, sometimes we find ourselves longing for the convenience and familiarity of a desktop app. That's where Nativfier comes into play. In this blog post, we will explore how to transform NftyChat, a web3 Discord alternative, into a wrapped Electron desktop app using Nativfier. Let's dive in!&lt;/p&gt;

&lt;p&gt;Step 1: Setting up the Project&lt;br&gt;
To get started, create a new directory called "wrappedElectron" and navigate into it using the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ mkdir wrappedElectron &amp;amp;&amp;amp; cd wrappedElectron
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step 2: Installing Nativfier&lt;br&gt;
Nativfier is a command-line tool that allows you to wrap web applications into native desktop apps. Install it globally using npm:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ npm install -g nativefier
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step 3: Creating the Desktop App&lt;br&gt;
Now that we have Nativfier installed, let's create our NftyChat desktop app. Use the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ nativefier --name 'nfty chat' 'nftychat.xyz'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, we specify the app's name as 'nfty chat' and provide the URL of NftyChat as 'nftychat.xyz'. Nativfier will now begin the process of transforming the web app into a native Electron desktop application.&lt;/p&gt;

&lt;p&gt;Step 4: Exploring the Wrapped Electron App&lt;br&gt;
Once Nativfier has completed its magic, you will find a new folder named 'nfty chat-darwin-x64' (or a similar name based on your operating system). This folder contains the wrapped Electron app files.&lt;/p&gt;

&lt;p&gt;Step 5: Launching the App&lt;br&gt;
To launch the newly created desktop app, simply navigate into the app folder using the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ cd nfty\ chat-darwin-x64/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inside this folder, you will find the actual app file with an extension like '.app' (e.g., 'nfty chat.app' on macOS). Double-click on it, and voila! Your NftyChat desktop app should open.&lt;/p&gt;

&lt;p&gt;Conclusion:&lt;br&gt;
With Nativfier, we have successfully turned NftyChat, a web3 Discord alternative, into a wrapped Electron desktop app. This allows us to enjoy the benefits of a native desktop experience while using this web application. Nativfier provides a simple and efficient way to convert web apps into desktop apps, opening up possibilities for enhanced productivity and user convenience.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/nativefier/nativefier"&gt;https://github.com/nativefier/nativefier&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can find me at  @ &lt;a href="https://nftychat.xyz/community/38728ab"&gt;https://nftychat.xyz/community/38728ab&lt;/a&gt;&lt;/p&gt;

</description>
      <category>web3</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
