<?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: Mor GUEYE</title>
    <description>The latest articles on DEV Community by Mor GUEYE (@morgueye4).</description>
    <link>https://dev.to/morgueye4</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F681215%2F9edcda1b-110b-4522-be61-8e736136b078.png</url>
      <title>DEV Community: Mor GUEYE</title>
      <link>https://dev.to/morgueye4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/morgueye4"/>
    <language>en</language>
    <item>
      <title>How to use Polkadot Web Identicon</title>
      <dc:creator>Mor GUEYE</dc:creator>
      <pubDate>Mon, 09 Aug 2021 03:09:44 +0000</pubDate>
      <link>https://dev.to/morgueye4/how-to-use-polkadot-web-identicon-2344</link>
      <guid>https://dev.to/morgueye4/how-to-use-polkadot-web-identicon-2344</guid>
      <description>&lt;p&gt;This tutorial shows how to use the &lt;code&gt;polkadot-web-identicon&lt;/code&gt;, a generic identity icon that renders Substrate based chains identicons for &lt;code&gt;html/javascript&lt;/code&gt; frontend applications.&lt;/p&gt;

&lt;p&gt;The simplest way to use the component is to download it from &lt;code&gt;npm&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;We assume you have &lt;code&gt;npm&lt;/code&gt; and &lt;code&gt;node.js&lt;/code&gt; installed in your environment.&lt;/p&gt;

&lt;p&gt;create a folder with a name of your choice for example : &lt;code&gt;pwi&lt;/code&gt; (like &lt;code&gt;polkadot-web-identicon&lt;/code&gt; 😎)&lt;br&gt;
&lt;code&gt;cd&lt;/code&gt; into the &lt;code&gt;pwi&lt;/code&gt; (or the one you created) folder.&lt;/p&gt;

&lt;p&gt;Type &lt;code&gt;npm init&lt;/code&gt; to create the &lt;code&gt;package.json&lt;/code&gt; file that will allow us to download packages from &lt;code&gt;npm&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For simplicity sake, type enter for each question and at the end the &lt;code&gt;package.json&lt;/code&gt; file should be created.&lt;/p&gt;

&lt;p&gt;Create an &lt;code&gt;index.html&lt;/code&gt; file that will contain the &lt;code&gt;html&lt;/code&gt; and javascript code and past the following &lt;code&gt;html&lt;/code&gt; snippet.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset=&lt;/span&gt;&lt;span class="s"&gt;"UTF-8"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;http-equiv=&lt;/span&gt;&lt;span class="s"&gt;"X-UA-Compatible"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"IE=edge"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial-scale=1.0"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Testing polkadot-web-identicon&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we can install the &lt;code&gt;polkadot-web-identicon&lt;/code&gt; package from &lt;code&gt;npm&lt;/code&gt; with :&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm i polkadot-web-identicon&lt;/code&gt; After the installation completed we are ready to use the package we just need to do two things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;import the component library code files&lt;/li&gt;
&lt;li&gt;call the component and use it with our parameters&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are the attributes that we can pass to the &lt;code&gt;polkadot-web-identicon&lt;/code&gt; tag&lt;/p&gt;

&lt;p&gt;&lt;code&gt;address&lt;/code&gt; : the Substrate blockhain based address to pass as parameter&lt;/p&gt;

&lt;p&gt;&lt;code&gt;theme&lt;/code&gt; : the theme we want to display ( polkadot, beachball, jdenticon)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;size&lt;/code&gt; : the size we want our identicon to be.&lt;/p&gt;

&lt;p&gt;Our final structure in the index.html file will look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset=&lt;/span&gt;&lt;span class="s"&gt;"UTF-8"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;http-equiv=&lt;/span&gt;&lt;span class="s"&gt;"X-UA-Compatible"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"IE=edge"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial-scale=1.0"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Testing polkadot-web-identicon&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;Polkadot icon theme  with default size&lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;polkadot-web-identicon&lt;/span&gt; &lt;span class="na"&gt;address=&lt;/span&gt;&lt;span class="s"&gt;"5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty"&lt;/span&gt; &lt;span class="na"&gt;theme=&lt;/span&gt;&lt;span class="s"&gt;"polkadot"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/polkadot-web-identicon&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;br&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;beachball icon theme  with size of 80 &lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;polkadot-web-identicon&lt;/span&gt; &lt;span class="na"&gt;address=&lt;/span&gt;&lt;span class="s"&gt;"5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty"&lt;/span&gt; &lt;span class="na"&gt;theme=&lt;/span&gt;&lt;span class="s"&gt;"beachball"&lt;/span&gt; &lt;span class="na"&gt;size=&lt;/span&gt;&lt;span class="s"&gt;"80"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/polkadot-web-identicon&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;br&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;jdenticon icon theme  with size of 120&lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;polkadot-web-identicon&lt;/span&gt; &lt;span class="na"&gt;address=&lt;/span&gt;&lt;span class="s"&gt;"5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty"&lt;/span&gt; &lt;span class="na"&gt;theme=&lt;/span&gt;&lt;span class="s"&gt;"jdenticon"&lt;/span&gt; &lt;span class="na"&gt;size=&lt;/span&gt;&lt;span class="s"&gt;"120"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/polkadot-web-identicon&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text/javascript"&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"node_modules/polkadot-web-identicon/main.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text/javascript"&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"node_modules/polkadot-web-identicon/polyfills.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text/javascript"&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"node_modules/polkadot-web-identicon/runtime.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text/javascript"&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"node_modules/polkadot-web-identicon-vendor/vendor.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Running the app
&lt;/h3&gt;

&lt;p&gt;you can run &lt;code&gt;npx live-server&lt;/code&gt; under the &lt;code&gt;pwi&lt;/code&gt; or your project to see the rendered icons&lt;/p&gt;

</description>
      <category>polkadot</category>
      <category>substrate</category>
      <category>identicon</category>
      <category>webcomponents</category>
    </item>
    <item>
      <title>How to use Polkadot Angular Identicon</title>
      <dc:creator>Mor GUEYE</dc:creator>
      <pubDate>Mon, 09 Aug 2021 03:09:35 +0000</pubDate>
      <link>https://dev.to/morgueye4/how-to-use-polkadot-angular-identicon-4659</link>
      <guid>https://dev.to/morgueye4/how-to-use-polkadot-angular-identicon-4659</guid>
      <description>&lt;p&gt;This guides shows how to use the &lt;code&gt;polkadot-angular-identicon&lt;/code&gt;, a generic identity icon that can render icons in Angular applications for Substrate based chains.&lt;/p&gt;

&lt;p&gt;We assume that you have the angular cli installed if not then inslall it by typing&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm install -g @angular/cli&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;After the cli installation is done just type &lt;code&gt;ng --version&lt;/code&gt; and it will display the Angular cli version For more info please visit this link.&lt;/p&gt;

&lt;h3&gt;
  
  
  Create an Angular project
&lt;/h3&gt;

&lt;p&gt;To create an angular project type: &lt;code&gt;ng new my-project&lt;/code&gt; and the my-project will be created.&lt;/p&gt;

&lt;p&gt;In our case let's create a project called &lt;code&gt;pai&lt;/code&gt; (like polkadot-angular-identicon 😎)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ng new pai&lt;/code&gt; and you will see something like this&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SBs6irYR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bv8nvlcvyq25ae8oftoc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SBs6irYR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bv8nvlcvyq25ae8oftoc.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;install &lt;code&gt;polkadot-angular-identicon&lt;/code&gt; npm dependency&lt;br&gt;
Open the pai project via your favorite IDE and from IDE's terminal install the component &lt;code&gt;npm i polkadot-angular-identicon&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;After the package is installed open the &lt;code&gt;app.module.ts&lt;/code&gt; file in the project under src and add the &lt;code&gt;PolkadotIdentIconModule&lt;/code&gt; into the imports section (this is the section were we import an angular module).&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;PolkadotIdentIconModule&lt;/code&gt; can be also used in any other angular feature module in the imports or exports section.&lt;/p&gt;
&lt;h3&gt;
  
  
  Usage of the component
&lt;/h3&gt;

&lt;p&gt;Now what we only have to do is to use the identicon in the template component of our linkings for instance in our &lt;code&gt;pai&lt;/code&gt; project let's use it in the &lt;code&gt;app.component.html&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;Open the &lt;code&gt;app.component.html&lt;/code&gt; file and remove it's content and past this line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;Polkadot icon theme  with default size&lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;polkadot-angular-identicon&lt;/span&gt; &lt;span class="na"&gt;address=&lt;/span&gt;&lt;span class="s"&gt;"5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty"&lt;/span&gt; &lt;span class="na"&gt;theme=&lt;/span&gt;&lt;span class="s"&gt;"polkadot"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/polkadot-angular-identicon&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;br&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;beachball icon theme  with size of 80 &lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;polkadot-angular-identicon&lt;/span&gt; &lt;span class="na"&gt;address=&lt;/span&gt;&lt;span class="s"&gt;"5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty"&lt;/span&gt; &lt;span class="na"&gt;theme=&lt;/span&gt;&lt;span class="s"&gt;"beachball"&lt;/span&gt; &lt;span class="na"&gt;[size]=&lt;/span&gt;&lt;span class="s"&gt;"80"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/polkadot-angular-identicon&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;br&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;jdenticon icon theme  with size of 120&lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;polkadot-angular-identicon&lt;/span&gt;  &lt;span class="na"&gt;address=&lt;/span&gt;&lt;span class="s"&gt;"5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty"&lt;/span&gt; &lt;span class="na"&gt;theme=&lt;/span&gt;&lt;span class="s"&gt;"jdenticon"&lt;/span&gt; &lt;span class="na"&gt;[size]=&lt;/span&gt;&lt;span class="s"&gt;"120"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/polkadot-angular-identicon&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At this step we are almost done but we need some final touches&lt;/p&gt;

&lt;p&gt;open the package.json file and add at the following at the end before the closing bracket:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;browser&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;crypto&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;open the &lt;code&gt;tsconfig.app.json&lt;/code&gt; and add &lt;code&gt;"node"&lt;/code&gt; to the &lt;code&gt;types&lt;/code&gt; property in &lt;code&gt;compilerOptions&lt;/code&gt; section&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
 &lt;/span&gt;&lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"compilerOptions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"types"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"node"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="w"&gt;
 &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;open &lt;code&gt;tsconfig.json&lt;/code&gt; and add at the end of the &lt;code&gt;compilerOptions&lt;/code&gt; add the following&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nl"&gt;"paths"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"crypto"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"./node_modules/crypto-browserify"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"stream"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"./node_modules/stream-browserify"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And one last thing open the &lt;code&gt;polyfills.ts&lt;/code&gt; file under &lt;code&gt;src&lt;/code&gt; and add the snippet below line at the end&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;window&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nx"&gt;any&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nb"&gt;global&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;window&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nx"&gt;any&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;Buffer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;window&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nx"&gt;any&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;Buffer&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nx"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;buffer&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the app&lt;br&gt;
To test the app run the command &lt;code&gt;ng serve&lt;/code&gt; and open your browser at &lt;code&gt;localhost:4200&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You can also type the command &lt;code&gt;ng serve -o&lt;/code&gt; and it will automatically open the app in your default browser.&lt;/p&gt;

</description>
      <category>polkadot</category>
      <category>substrate</category>
      <category>identicon</category>
      <category>angular</category>
    </item>
  </channel>
</rss>
