PhoneGap – Open Source Mobile App Development Framework
We have gone through one more Open Source Mobile App Development Framework in our previous article i.e Ionic Framework. You can check this article at Open Source Mobile App Development Framework – Ionic.
It includes the following:
- PhoneGap Developer is a mobile app to connect your devices to your development machine (to see changes you make instantly).
- PhoneGap Build enables you to get app-store ready apps without having to maintain native SDKs for each mobile environment.
- Third party tools are where you can find extra tools, created by the PhoneGap community, to help test, debug, and manage apps.
- Developer community allows you to connect to thousands of developers working with PhoneGap.
- Mobile App helps you pair your mobile device to the desktop app, so you can preview your new app.
- Plugin Library gets you to access to a robust library of plugins to extend the capability of your mobile apps.
How to install PhoneGap CLI tool?
To install the CLI tool, you’ll need node.js and npm installed on your system.
To install Node.js and npm run commands as follows:
- Open a terminal window.
- Issue the command sudo apt install curl
- Add the necessary repository with the command curl -sL https://deb.nodesource.com/setup_10.x | sudo bash –
- Install node.js and npm with the command sudo apt install nodejs
Now, you can install the PhoneGap CLI tool with the command given below:
sudo npm install -g phonegap@latest
Once you’ve installed the CLI, run the command phonegap to see the help file as shown in below image.
You might run into permission issues while running the above command. To fix it, run the command as follows:
sudo chown -R USER:USER ~/.config/configstore
Where USER is your Linux server username.
Now you can start with creating your first project using the following command:
phonegap create PROJECT_NAME
Where PROJECT_NAME is a unique name of your project.
To get more information about how to use the PhoneGap CLI, please check out this reference.
PhoneGap and Ionic both the tools, however, can be thought of as a great launching point to help you begin with your mobile development journey.