As we know LattePanda 3 Delta is more like a PC. It means it can perform all the things similar to the usual computer. The main advantage is its size and compactness. We have already seen some IoT use cases with the LattePanda 3 Delta. Now let's try something different from the standard use cases.
Idea:This tutorial will guide you to deploy a live website in LattepPanda. Usually, we all install and deploy our websites on server PC.
Web hosting is a process where a web hosting provider stores and maintains website files and applications on a server to make its customers' websites accessible on the internet.
So, it means the hosting provider has a bunch of servers (PCs) to deploy our websites.
Here is the typical web hosting cost breakdown:
But anyway, we don't like normal stuff, right? Let's deploy our websites on our own web server.
The prerequisites are only a LattePanda 3 Delta and a good internet connection. That's all.
First, we are going to build a local web server with XAMP and then by using the VPN tunneling we will transform the local IP into public IP. And last, we can access local websites from all over the world.
Step 1: Local Server DeploymentNavigate to this xamp website and download then install the camp server in your LattePanda 3 Delta.
Once you have done with the installation it will automatically start to show the control panel.
Next, start all these servers. I have started all of them, but you can use them as you want.
Then click on the file manager in the camp server. It will automatically navigate you to the file storage of the LattePanda 3 Delta.
In this open the "htdocs" folder. This will contain the index page of our website. And then put your website files in it.
Once you are done with the process, just open the browser and navigate to the "localhost".
That's all now we can access our website from the local host. But we need to deploy this worldwide.
Step 2: Global DeploymentNext, we need to deploy our local site to the entire world, then only we can access this local website from anywhere in the world.
Go to this Packetriot website, this will help us to deploy the website.
First, log in to the portal and download the Windows client for Packetriot.
Next, open the downloaded file and copy the file path.
Then add the path into the environment variable.
Then open PowerShell and enter the following command to configure the Packetriot client. "pktriot.exe configure"
Next, login to the Packetriot and select your server region.
Here the hostname is our public domain address.
Enter this command to view the server info. And then it will show you the public domain name, by this only we are going to access our local server via the internet. "pktriot.exe info"
Next enter the following command to edit the tunnel name. "pktriot.exe edit --name 'your name'"
Then open the cloud portal of Packetriot and then you can see the server details.
Now we are all set, the only thing is now we can redirect the public domain to our local IP. "pktriot.exe tunnel http add --domain 'your domain' --destination localhost --http 80 --letsencrypt"
Finally, start the connection by using this command "pktriot.exe start"
Now we are all set, just open the public domain which we got from Packetriot, and then you can see our local server page.
Now our local server is deployed to the entire world. You can access this local server from anywhere in the world. Hope you guys enjoyed this tutorial. Will be back with another tutorial soon. Thank you.
Comments
Please log in or sign up to comment.