Ngrok Tutorial to Deploy Localhost Apps to Public URLs For Testing Full Tutorial For Beginners

You are currently viewing Ngrok Tutorial to Deploy Localhost Apps to Public URLs For Testing Full Tutorial For Beginners

 

Welcome folks today in this post we will be talking about ngrok library by which you can deploy localhost apps instantly on internet.

 

 

Advantages of Ngrok

 

 

You can share localhost apps to public urls instantly

 

useful for rapid testing in short intervals of time

 

it is open source and totally free

 

 

 

Get Started

 

 

In order to get started you need to go to their official website and download it

 

ngrok official website

 

 

Sign Up on Ngrok

 

 

 

 

 

 

 

 

 

 

 

 

Connecting Ngrok by Auth Token

 

 

 

When you signup on ngrok on your dashboard you will get a auth token . Now this will be unique for you. Now you need to copy this and save this somewhere we will use it later.

 

 

 

 

 

Now when you extract the zip file you will get exe file of ngrok. When you run it you will get this cmd screen

 

 

 

 

 

Now execute this command at this cmd to connect ngrok with auth token

 

 

 

 

 

 

 

Now in the same directory create a index.html file and copy paste the following code

 

 

 

 

 

Now to deploy this using ngrok public url you need to execute this below command

 

 

ngrok http 3000

 

 

so here ngrok is starting or deploying our application to a random url at port 3000

 

 

 

 

 

As you can see it has deployed app to internet. Anyone having internet access can see our app at this random generated url.

It supports both http and https versions of url. So that’s so great for security

 

Leave a Reply