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
In order to get started you need to go to their official website and download it
Sign Up on Ngrok
Connecting Ngrok by Auth Token
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
ngrok authtoken ###yourauthtoken###
Now in the same directory create a
index.html file and copy paste the following code
<p>This is a paragraph</p>
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
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
https versions of url. So that’s so great for security