Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Two Open Source Mobile App Development Frameworks To Make Mobile Dev Easier

#1
Two Open Source Mobile App Development Frameworks To Make Mobile Dev Easier

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/11/two-open-source-mobile-app-development-frameworks-to-make-mobile-dev-easier.jpg" width="1920" height="1081" title="" alt="" /></div><div><div><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/11/two-open-source-mobile-app-development-frameworks-to-make-mobile-dev-easier.jpg" class="ff-og-image-inserted" /></div>
<p><span><span>Mobile apps have been a boon for developers. With Android the most widely used platform on the planet, it makes perfect sense for developers to ply their trade in the mobile market. Not only do developers have the chance to get their work seen, they can make money from the </span><a href="https://play.google.com/store?hl=en"><span>Google Play Store</span></a><span> or the </span><a href="https://www.apple.com/ios/app-store/"><span>iOS App Store</span></a><span>. For those who have yet to delve into the mobile development market, however, the process may be a bit daunting. What tools are available? More importantly, what open source tools are available? After all, if you’re developing on the Linux platform, you probably don’t want to work with proprietary software. </span></span></p>
<p><span><span>So, to get started creating the greatest mobile app on the planet, you need to get the right tools. One such tool is a framework. In programming terms, a framework is an abstraction in which common code (that provides a generic or general functionality) can be used and rewritten to provide a specific functionality. Say you need Function X for your app, but you don’t want to write all the necessary code for that function. You can use a framework that offers Function X and modify that function so it perfectly fits your needs. In other words, a framework is a way to make development easier and more efficient.</span></span></p>
<p><span><span>Are there open source frameworks available for mobile development? There certainly are. Let’s take a look at two tools available for this particular task.</span></span></p>
<h3><span><span>Ionic</span></span></h3>
<p><span><a href="https://ionicframework.com/framework"><span>Ionic</span></a><span> is both 100 percent free and open source. This project, licensed under MIT, enables you to build fully cross-platform, progressive web and native mobile apps for every major app store… all from a single codebase. You can develop Ionic apps on any platform you like. Of course, our platform of choice is Linux. Fortunately, Ionic offers a simple command-line interface (CLI) that can be used to create, build, test, and deploy your apps to any platform. Ionic also features:</span></span></p>
<ul>
<li>
<p><span><span>Ionic Native, which allows you to unlock native APIs (and other features), by wrapping Cordova plugins in TypeScript.</span></span></p>
</li>
<li>
<p><span><span>Live Reload, which allows you to compile and re-deploy an app at every development step.</span></span></p>
</li>
<li>
<p><span><span>Ionicons, which is an icon pack that includes hundreds of the most common app icons (all MIT licensed and ready to use).</span></span></p>
</li>
<li>
<p><span><span>Deeplinking, which allow you to start your app from a web link (and can even load a specific view out of the box).</span></span></p>
</li>
<li>
<p><span><span>AoT Compiling, which helps your apps to load faster.</span></span></p>
</li>
</ul>
<p><span><span>Create a free Ionic account </span><a href="https://dashboard.ionicframework.com/signup"><span>here</span></a><span> and then install Ionic on your distribution. For example, if you’re using Ubuntu as your development platform, to install Ionic you must first install Node.js and npm like so:</span></span></p>
<ol>
<li>
<p><span><span>Open a terminal window.</span></span></p>
</li>
<li>
<p><span><span>Issue the command </span><em><span>sudo apt install curl</span></em></span></p>
</li>
<li>
<p><span><span>Add the necessary repository with the command </span><em><span>curl -sL <a href="https://deb.nodesource.com/setup_10.x">https://deb.nodesource.com/setup_10.x</a> | sudo bash –</span></em></span></p>
</li>
<li>
<p><span><span>Install node.js and npm with the command </span><em><span>sudo apt install nodejs</span></em></span></p>
</li>
</ol>
<p><span><span>Install Ionic with the command:</span></span></p>
<pre>
<span><span>sudo npm install -g ionic</span></span>
</pre>
<p><span><span>You can now begin creating and working with your project. To create a new project, issue the command:</span></span></p>
<pre>
<span><span>ionic start PROJECT_NAME blank --type ionic1</span></span></pre>
<p><span><span>where PROJECT_NAME is the name of your project. You should see a newly created folder (with the same name as your project), that includes a number of new files and folders (</span><span>Figure 1</span><span>).</span></span></p>
<p><span><span>For more information on using the Ionic CLI, check out the </span><a href="https://ionicframework.com/docs/v1/guide/"><span>official Ionic Guide</span></a><span>.</span></span></p>
<h3><span><span>PhoneGap</span></span></h3>
<p><span><a href="https://phonegap.com/"><span>PhoneGap</span></a><span> is an open source distribution of Adobe Cordova that makes it possible to </span></span><span><span>develop your mobile app using web development technologies (e.g., HTML, CSS, and JavaScript) in just a few minutes. If you don’t want to work from the command line, PhoneGap does offer a </span><a href="https://phonegap.com/products/#desktop-app-section"><span>desktop app</span></a><span> (which is only available for macOS and Windows). The desktop app uses the same libraries found in the CLI, but it makes it a bit less daunting for those who prefer a more point and click-friendly method of app development.</span></span></p>
<p><span><span>PhoneGap includes the following:</span></span></p>
<ul>
<li>
<p><span><span>PhoneGap Developer is a mobile app to connect your devices to your development machine (to see changes you make instantly).</span></span></p>
</li>
<li>
<p><span><span>PhoneGap Build enables you get app-store ready apps without having to maintain native SDKs for each mobile environment.</span></span></p>
</li>
<li>
<p><span><span>Plugin Library gets you access to a robust library of plugins to extend the capability of your mobile apps.</span></span></p>
</li>
<li>
<p><span><span>Third party tools is where you can find additional tools, created by the PhoneGap community, to help test, debug, and manage apps.</span></span></p>
</li>
<li>
<p><span><span>Developer community allows you to connect to thousands of developers working with PhoneGap.</span></span></p>
</li>
<li>
<p><span><span>Mobile App helps you pair your mobile device to the desktop app, so you can preview your new app.</span></span></p>
</li>
</ul>
<p><span><span>To install the PhoneGap CLI tool, you’ll need jode.js and npm installed (as described above). Once that is taken care of, you can install the PhoneGap CLI tool with the command:</span></span></p>
<pre>
<span><span>sudo npm install -g phonegap@latest</span></span></pre>
<p><span><span>Once you’ve install the CLI, issue the command </span><span><em>phonegap</em> </span><span>to see the help file (and show that the tool was successfully installed—</span><span>Figure 2</span><span>).</span></span></p>
<p><span><span>You might find you run into a permissions issue, when running the </span><span>phonegap</span><span> command. To resolve that, issue the command:</span></span></p>
<pre>
<span><span>sudo chown -R USER:USER ~/.config/configstore</span></span></pre>
<p><span><span>Where USER is your Linux username.</span></span></p>
<p><span><span>You should now be able to create your first project with the command:</span></span></p>
<pre>
<span><span>phonegap create PROJECT_NAME</span></span></pre>
<p><span><span>Where PROJECT_NAME is the name of your project.</span></span></p>
<p><span><span>To find out more on how to use the PhoneGap CLI, check out </span><a href="https://www.npmjs.com/package/phonegap"><span>this reference</span></a><span>. </span></span></p>
<h3><span><span>There’s more to be found</span></span></h3>
<p><span><span>There are plenty more open source mobile developer frameworks to be found. These two tools, however, can be thought of as a great launching point to help you get started with your mobile development journey. They are certainly not the only players on the field, but offer quite a lot in the way of power, flexibility, and feature sets. Give one of these tools a try and see if it doesn’t empower your mobile app development with the help of open source.</span></span></p>
<p><em><span>Learn more about Linux development in the</span><a href="https://training.linuxfoundation.org/training/introduction-to-open-source-development-git-and-linux/?utm_source=linux.com&amp;utm_medium=article&amp;utm_campaign=lfd201"> Introduction to Open Source Development, Git, and Linux </a>training course, <span>and sign up now to start your open source journey.</span></em></p>
</div>
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016