<?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: Fesobi omoyemi</title>
    <description>The latest articles on DEV Community by Fesobi omoyemi (@omoyemi).</description>
    <link>https://dev.to/omoyemi</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%2F806919%2F85212dbc-9755-46a2-9a37-1fca0d3f17ab.png</url>
      <title>DEV Community: Fesobi omoyemi</title>
      <link>https://dev.to/omoyemi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/omoyemi"/>
    <language>en</language>
    <item>
      <title>Accessing localhost application over the internet - with Ngrok</title>
      <dc:creator>Fesobi omoyemi</dc:creator>
      <pubDate>Wed, 27 Apr 2022 22:24:39 +0000</pubDate>
      <link>https://dev.to/omoyemi/accessing-localhost-application-over-the-internet-with-ngrok-ljh</link>
      <guid>https://dev.to/omoyemi/accessing-localhost-application-over-the-internet-with-ngrok-ljh</guid>
      <description>&lt;p&gt;Sometimes it can really be frustrating when working on a localhost project that requires a secure HTTPS for it to work , for instance accessing camera and  location in HTML, using Facebook and Google authentication require you to be running on a secure HTTPS, or making your application available over the internet for testing.&lt;br&gt;
you can create and debug your localhost project on a secure HTTPS using Ngrok.&lt;br&gt;
With Ngrok, you can make your localhost project accessible over the internet with secure HTTPS.&lt;/p&gt;

&lt;p&gt;In this article, we'll learn how we can use Ngrok to make our localhost project available over the internet for easy testing and debugging purposes.&lt;/p&gt;
&lt;h2&gt;
  
  
  What is Ngrok?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://ngrok.com/" rel="noopener noreferrer"&gt;Ngrok&lt;/a&gt; is a globally distributed reverse proxy that serves your web services from any cloud or private network, as well as your local machine. It allows developers to  locally-hosted web server services over the internet. These locally hosted server will now appear  to be hosted on ngrock.com subdomain&lt;br&gt;
To be able to use run ngrok for your project, the project must be running on your local machine and be available at &lt;a href="http://localhost:%5Bany_port%5D" rel="noopener noreferrer"&gt;http://localhost:[any_port]&lt;/a&gt; &lt;/p&gt;
&lt;h2&gt;
  
  
  How to setup Ngrok
&lt;/h2&gt;

&lt;p&gt;Before we get started we need to &lt;a href="https://dashboard.ngrok.com/login" rel="noopener noreferrer"&gt;login&lt;/a&gt; to the Ngrok dashboard. If you do not have an account, you can create a new &lt;a href="https://dashboard.ngrok.com/signup" rel="noopener noreferrer"&gt;ngrok account&lt;/a&gt; on their website.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 1
&lt;/h3&gt;

&lt;p&gt;From your Ngrok dashboard click on Download for Windows to download Ngrok on your computer&lt;br&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%2Fmw6xpc7oap08nr4r2wf9.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%2Fmw6xpc7oap08nr4r2wf9.PNG" alt="Ngrok dashboard"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 2
&lt;/h3&gt;

&lt;p&gt;After Ngrok has finished downloading, extract the downloaded file.&lt;br&gt;
Open your terminal and navigate to the folder where you extracted Ngrok agent file, now run the command below to install Ngrok agent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;start ngrok.exe
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3
&lt;/h3&gt;

&lt;p&gt;Now we need to add ngrok authtoken to the installed ngrok agent, to do this is pretty simple, go to your ngrok dashboard and click on Your Authtoken to get your token. Under command line copy the command there as shown in the screenshot below:&lt;br&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%2F68hxdgjwypskvip0008n.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%2F68hxdgjwypskvip0008n.PNG" alt="Ngrok Authtoken"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 4
&lt;/h3&gt;

&lt;p&gt;In the terminal right click on it and past the copy command in the previou step, the execute it to configure your Authtoken. Once the Authtoken is configured successfully we can now test our Ngrok agent.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 5
&lt;/h3&gt;

&lt;p&gt;You need to have  localhost server running on your computer before starting ngrok: if you have local web server on your computer you can skip this step but if not create a react app with a local web server be running the commands below on another terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx create-react-app my-app
&lt;span class="nb"&gt;cd &lt;/span&gt;my-app
npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once the react app has been installed, the react application will be running on localhost port 3000.&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%2F5eardrigsjqhc764o32h.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%2F5eardrigsjqhc764o32h.PNG" alt="running ngrok"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6
&lt;/h3&gt;

&lt;p&gt;Now that we have our local web server running we can start ngrok on the terminal with the command below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ngrok http 3000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note : replace the 3000 with the port that your local web server is running.&lt;/p&gt;

&lt;p&gt;Copy the forwarding url and paste it to your browser, you’ll see something similar to the screenshot below:&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%2Frpsrx1f27cw69dyepuv1.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%2Frpsrx1f27cw69dyepuv1.PNG" alt="vite react app"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this tutorial, we learnt how to make localhost web servers available on the internet using Ngrok, this gives developers more control and flexibility before officially launching projects on the internal, it also makes the development process more easy.&lt;br&gt;
I hope you enjoy the tutorial, thank you.&lt;/p&gt;

</description>
      <category>server</category>
      <category>localhost</category>
      <category>ngrok</category>
    </item>
    <item>
      <title>CSS 3D Flip</title>
      <dc:creator>Fesobi omoyemi</dc:creator>
      <pubDate>Mon, 31 Jan 2022 16:20:51 +0000</pubDate>
      <link>https://dev.to/omoyemi/css-3d-flip-211c</link>
      <guid>https://dev.to/omoyemi/css-3d-flip-211c</guid>
      <description>&lt;p&gt;In CSS, the transform property is used to change the coordinate space of an element, with transform property effects like rotate, skew, and translate being added to an element. Transform helps to design elements that improve user interaction with the webpage.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;

 &lt;span class="nc"&gt;.element&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nb"&gt;transparent&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;300px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;float&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;left&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;rotateY&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;180deg&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fje75a7yz51pt02mtyfwm.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%2Fje75a7yz51pt02mtyfwm.png" alt="flip Image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Transform  Syntax&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;

 &lt;span class="nt"&gt;transform&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;rotateY&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;angle&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;When using CSS 3D flip, transform takes one function either rotateY() or rotateX() each of these functions has one parameter angle e.g 180deg, that determines what degree the element should rotate. The parameter specifies the angle of the rotation, the parament can be a positive number or negative number.&lt;br&gt;
A positive number will result in a clockwise rotation and a negative value result in a counter-clockwise rotation&lt;br&gt;
rotateY();&lt;br&gt;
rotateY() function rotates an element around the y-axis when used with the CSS transform property. the function value can be positive to rotate the element clockwise or negative to rotate the element counter-clockwise on a y-axis direction as shown below:&lt;/p&gt;

&lt;p&gt;.element{&lt;br&gt;
      background-color:transparent;&lt;br&gt;
      width:300px;&lt;br&gt;
      height: 400px;&lt;br&gt;
      transform: rotateY(-100deg);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;This will rotate the element 100 degrees in counter-clockwise direction on the y-axis direction.&lt;/p&gt;

&lt;p&gt;rotateX()&lt;br&gt;
The rotateX() function is used with CSS 3D-transforms. It's used with transform property to rotate an element around the x-axis. It can be used along with rotateY() to rotate the element around the y-axes when needed.&lt;/p&gt;

&lt;p&gt;.element{&lt;br&gt;
      background-color:transparent;&lt;br&gt;
      width:300px;&lt;br&gt;
      height: 400px;&lt;br&gt;
      transform: rotateX(180deg);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;The above code will rotate the element 180 degrees in a clockwise direction on the x-axis direction.&lt;br&gt;
  transform: rotateY(180deg);&lt;/p&gt;

&lt;p&gt;rotateY();&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/popoolatopzy/embed/LYzXGpY?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;rotateX();&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/popoolatopzy/embed/KKXrVmB?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>css</category>
      <category>3d</category>
    </item>
  </channel>
</rss>
