How to Test DeepAR Web SDK Using Ngrok
In this article, we'll guide you through running DeepAR Web SDK using Ngrok. In several easy steps, you will learn how to get a free public URL from Ngrok and run DeepAR's Web SDK using that URL.
1. Ngrok Setup
2. DeepAR Web SDK
Step two is to prepare DeepAR Web SDK. For that, you need to go to [DeepAR developer](https://developer.deepar.ai/ and Log in or Sign up.
After you finished that, go to Downloads and download the DeepAR Web SDK.
Add the Ngrok file (that you downloaded before) inside the example folder under DeepAR Web SDK.
3. Local Host
Now we need to run a localhost server. For that, open the terminal and navigate to the example directory folder under DeepAR Web SDK, and run the
server.py script using this command:
Next, in the same example directory in the terminal run the ngrok command to start a HTTP tunnel on port 8888:
./ngrok http 8888
After running that command you will get this black screen with new ngrok URL:
Copy the new URL that you get without the http/https.
Go to the DeepAR developer and make a new project. Under Applications choose Add web app.
Paste the domain that you copied from ngrok in terminal in the Domain Name field. Make sure you remove the http:// or https://.
Click Continue and you will get your App key.
Copy the App key that you get and paste that inside index.html under licenseKey.
That's it, now you can run it. Go to the ngrok domain on the web. Make sure that you entered the https:// before the domain.
And here it is, our DeepAR Web SDK running on Ngrok URL.