Cordova VM by Anarion Technologies
Apache Cordova is a powerful open-source framework that enables developers to build mobile applications using web-based languages such as HTML, CSS, and JavaScript. Originally known as PhoneGap before being acquired by Adobe, Cordova supports creating “hybrid” apps that can run across multiple mobile operating systems, including Android, iOS, and Windows, without needing separate codebases for each platform. This makes it ideal for projects with limited resources that still require a wide reach.
Cordova’s core strength lies in its plugin architecture, which provides a bridge between web code and native device functionalities like the camera, geolocation, contacts, notifications, and more. Plugins act as connectors to device-specific APIs, allowing web-based applications to function like native apps with full access to hardware features. This capability is vital for developing robust applications that demand functionality beyond the limitations of standard web apps, such as accessing local files, utilizing device sensors, or interacting with Bluetooth.
Cordova applications are essentially web views housed within a native app shell, using the system’s browser engine to render the HTML and JavaScript. While the app is not truly “native,” it offers an experience close to that of native applications in terms of functionality, look, and feel. Cordova’s command-line interface (CLI) simplifies project setup, platform addition, building, and deployment, while the wide array of plugins available, both officially supported and from the community, enables rapid prototyping and development for mobile projects.
Integrating with frameworks like Angular, Vue, and React also enhances Cordova’s appeal, as developers can use popular JavaScript frameworks to build feature-rich, maintainable mobile applications. Furthermore, Cordova has a vibrant ecosystem and a supportive community, providing developers with numerous resources, plugins, and tools to expedite the app development process. This makes it particularly attractive for teams that want to maximize code reuse across platforms, speed up development time, and still maintain access to native functionality.
To subscribe to this product from Azure Marketplace and initiate an instance using the Azure compute service, follow these steps:
1. Navigate to Azure Marketplace and subscribe to the desired product.
2. Search for “virtual machines” and select “Virtual machines” under Services.
3. Click on “Add” in the Virtual machines page, which will lead you to the Create a virtual machine page.
4. In the Basics tab:
- Ensure the correct subscription is chosen under Project details.
- Opt for creating a new resource group by selecting “Create new resource group” and name it as “myResourceGroup.”
5. Under Instance details:
- Enter “myVM” as the Virtual machine name.
- Choose “East US” as the Region.
- Select “Ubuntu 18.04 LTS” as the Image.
- Leave other settings as default.
6. For Administrator account:
- Pick “SSH public key.”
- Provide your user name and paste your public key, ensuring no leading or trailing white spaces.
7. Under Inbound port rules > Public inbound ports:
- Choose “Allow selected ports.”
- Select “SSH (22)” and “HTTP (80)” from the drop-down.
8. Keep the remaining settings at their defaults and click on “Review + create” at the bottom of the page.
9. The “Create a virtual machine” page will display the details of the VM you’re about to create. Once ready, click on “Create.”
10. The deployment process will take a few minutes. Once it’s finished, proceed to the next section.
To connect to the virtual machine:
1. Access the overview page of your VM and click on “Connect.”
2. On the “Connect to virtual machine” page:
- Keep the default options for connecting via IP address over port 22.
- A connection command for logging in will be displayed. Click the button to copy the command. Here’s an example of what the SSH connection command looks like:
“`
ssh [email protected]
“`
3. Using the same bash shell that you used to generate your SSH key pair, you can either reopen the Cloud Shell by selecting >_ again
or going to https://shell.azure.com/bash.
4. Paste the SSH connection command into the shell to initiate an SSH session.
Usage/Deployment Instructions
Anarion Technologies – Cordova
Note: Search product on Azure marketplace and click on “Get it now”
Click on Continue
Click on Create
Creating a Virtual Machine, enter or select appropriate values for zone, machine type, resource group and so on as per your choice.
After Process of Create Virtual Machine. You have got an Option Go to Resource Group
Click Go to Resource Group
Click on the Network Security Group: cordova-nsg
Click on Inbound Security Rule
Click on Add
Add Port
Add Port
Destination
Port Ranges Section* (where default
value is 8080)
8000
Select Protocol as
TCP
Option Action is
to be Allow
Click on Add
Click on Refresh
Copy the Public IP Address
SSH into Terminal and run these following Commands:
$ sudo su
$ sudo apt update
$ cd ../..
Verify the Version:
Create a New Cordova Project: Create a sample
project to ensure everything works.
$ cordova create myApp
This command creates a directory called myApp with a basic Cordova app structure. Add a Platform (for example, Android):
$ cd myApp
$ cordova platform add android
This will set up the Android platform files within the project. Build the Project:
$ cordova build android
Use the browser to access the application at http://”instance ipaddress:8000”
ThankYou!!!