IT-IPT02 Lesson+1+Intro
IT-IPT02 Lesson+1+Intro
Apps can be in the form of calendar, email, distribution list and contacts, it can
also in the form of database dependent Apps such as Accounting systems, order-
tracking, factory systems, banking systems, Transportation and cinema ticket
purchases and inventory management, most common Apps are mobile games, GPS
services and E-commerce services.
Apps can be purchased and uploaded to the distributors platforms these are
Google Play Store, Microsoft Store, Amazon App Store Appstore, F-Droid,
Blackberry world, and App Store (iOS), the profit is divided into the App Creator and
the distributor, however many apps are free but when installed there will instances
that advertisements appear while the App is active, Mobile applications can run in
desktop computers thru the use of Emulators.
NEUSTCICT 2020
Page 2 of 152
possible conduct and client experience, these Applications are associated into
individual databases and Web servers to gather and disperse information.
Hybrid app
This Application is a mix of both the native applications and the web
applications, it utilizes single code base to work and work in numerous versatile
working frameworks. It can bolster web and local innovations over numerous stages.
these applications are simpler and quicker to create.
Mixture applications are basically web applications that have been placed in a
native application shell. In spite of such favorable circumstances, crossover or hybrid
applications show lower execution.
When they are downloaded from an application store and introduced, the shell
can interface with the abilities of the portable working framework, gave through a
program that is implanted in the application.
Applications created utilizing React, Apache Cordova, Xamarin, Sencha and
other comparative innovation fall into this arrangement.
There are many examples of IDE for building mobile Apps these are divided
into Native Mobile Development Tools and Cross-Platform Mobile Development
Tools.
Native Mobile Development Tools
o AppCode
o Android Studio
o Xcode
Cross-Platform Mobile Development Tools
o Alpha anywhere
o Quick Base
o AppSheet
o TrackVIA
o Fliplet
o OutSystems
o Onsen UI
o NativeScript
o Sencha
o Ninox
o MobiLoud
o React Native
o Ionic
o Adobe PhoneGap
o Xamarin
o Appcelerator
In this course we will concentrate on the Ionic framework which is an open
source, making Applications in this framework is versatile and can run in different
platforms, since this is anything but difficult to-utilize and but somehow simple to-learn
structure that takes into consideration in fast prototyping. In our Ionic we will
incorporate it with Angular way of programming, this Precise is a TypeScript-based
open-source web application system made by Google which is a built on standard
web technology, Ionic helps developers build cross-platform hybrid and Advanced
Web Apps with ease and mobile UI.
NEUSTCICT 2020
Page 4 of 152
components. commands and tools for building Mobile Apps with common user
interface. Ionic is under MIT license.
Ionic contains elements such as HTML5, CSS and JavaScript to build and
design its UI or user interface (front end) and to create a look and feel of the
environment in using mobile devices, Ionic is built-on top of AngularJS and Apache
Cordova.
Ionic Framework pros and cons
Pros
Cons
Since it depends on the internet browser and sometimes give you innacurate
info about the device environment the testing and debugging is somehow
difficult
Uses numerous kinds of devices and platforms
Build errors that are tough to debug because of Plugin compatibility issues
exist.
Below are the features of Ionic
Ionic Command Line Interface (CLI) – This contains commands for building,
starting, running, executing and emulating the Ionic created applications. This
CLI utility is powered by NodeJS.
HTML5 − These components are encompassing webpage markup and
application programming interfaces (APIs) for complex web applications,
HTML5 contains elements in cross-platform mobile applications designed with
low-powered devices in mind and its natively include and handle multimedia
and graphical content
JavaScript components − These components are encompassing JavaScript
capabilities to manage all elements of mobile device such as event-drive and
functional programming styles that cannot be ended by HTML or CSS.
NEUSTCICT 2020
Page 5 of 152
C:\Windows> cd\
C:\> cd\users\Mario
C:\Users\Mario>
3. install the Cordova and Ionic by typing the command of npm shown below:
NEUSTCICT 2020
Page 6 of 152
NEUSTCICT 2020
Page 7 of 152
Creating Apps
(Reference: https://www.tutorialspoint.com/ionic/ionic_environment_setup.htm)
1. Blank App
2. Tabs App
3. Side menu app
1.Blank App
This will allow you to create blank mobile app from scratch. The following is
the command:
First create a folder for your App example. NOTES: the command MD means Make
a Directory (Folder) and the CD means Change Directory (Folder):
C:\Users\Mario> cd Documents
C:\Users\Mario\Documents> MD Ionic
C:\Users\Mario\Documents > CD Ionic
C:\Users\Mario\Documents\Ionic >
Then type the ionic start and your desired filename of the app and the word “blank”
the following example uses ExampleAPP as an example filename:
NEUSTCICT 2020
Page 8 of 152
The command “Ionic Start” will generate a folder named ExampleAPP and then
arrange and install folders and files.
C:\Users\Mario\Documents\Ionic> cd ExampleAPP
C:\Users\Mario\Documents\Ionic\ ExampleAPP >
Making android applications requires right stages to do these for the Android Platform
include the Cordova extend and introduce the fundamental Cordova modules
demonstrated as follows:
This command will output your App in the browser which is a blank interface with a
title “Ionic Blank starter”.
2.Tabs App
Allows you to create a default Ionic tabs template which contains a readymade
tab menu which are headers, common screens and functionalities. Open the
command prompt get out of the folder of our blank ExampleAPP folder:
C:\Users\Mario\Documents\Ionic\ExampleAPP> cd\
C:\Users\Mario\Documents\Ionic>
The command below begins the creation of the basic tabbed app:
NEUSTCICT 2020
Page 9 of 152
The command” Ionic Start” will generate a folder ExampleTabApp and then arrange
and install folders and the required files.
Enter into the newly created root folder of our Tabbed App (in this case
ExampleTabApp)
C:\Users\Mario\Documents\Ionic> cd ExampleTabApp
C:\Users\Mario\Documents\Ionic\ExampleTabApp >
Install the basic Cordova plugins and Install the Android Platform this will allow our
app to run in android emulators
NOTES: In case of building errors during this command run, Install the Android SDK
and its supporting files. npm i -g native-run
Then finally run your app, this will start if a mobile device is connected or an emulator
is present.
This command will output your App in the browser with a tabbed graphical toolbar on
it.
Open the command prompt get out of the folder of our blank ExampleTabApp folder:
NEUSTCICT 2020
Page 10 of 152
To create an app with side menu type the following (in this example our filename will
be ExampleSideMenuApp):
This above command creates a folder ExampleSideMenuApp and then create and
install folders arrangements and the required files.
C:\Users\Mario\Documents\Ionic>cd ExampleSideMenuApp
C:\Users\Mario\Documents\Ionic\ExampleSideMenuApp>
To run it in Android Emulator, install the basic Cordova plugins and then install the
Android Platform the command is shown below:
This command will output your App in the browser with a built-in menu on it.
NOTES: To deploy Ionic App in your mobile device please visit:
https://ionicframework.com/docs/v3/intro/deploying/
C:\Users\Mario\Documents\Ionic\ExampleSideMenuApp> code .
NOTES: there are only single space between the word “code” and the “.”
NEUSTCICT 2020
Page 11 of 152
With the ionic serve command, the web browser (Google Chrome
recommended) will open showing your App. To access the browser developer
console, Press the F12 key.
The webpage is auto refreshed, whenever. you make changes in the code.
NEUSTCICT 2020
Page 12 of 152
NEUSTCICT 2020
Page 13 of 152
EXERCISE
Answer the following question (send the answer thru Email of your instructor or
Facebook messenger, if there is any problem contact your instructor or ask
assistance to your class group)
1.) Describe the importance of Mobile Apps
2.) How can mobile apps help business, industry, education and
government?
The forms in Ionic are the least complex and for the most part generally
utilized type of communication among clients and the App you are planning these
structures are utilized to gather the information required
(Reference : https://ionicframework.com/docs/v3/developer-resources/forms/)
Making an Input Form
Utilizing item and the list as your fundamental classes permits your application
to comprise more than one-structure component and arrange the labels or
components in a rundown.
Utilizing the Label will give the capacity to center your content info.
The input type with a placeholder allows you to display any text that will act as
a caption, it will disappear as soon as you start typing and gets back again if you delete
all the text you type
The following examples are based on the traditional and previous version of
Ionic on how to put a label and text(with placeholder):
<div class = "list">
<label class = "item item-input">
<input type = "text" placeholder = "Type your Studno" />
</label>
NEUSTCICT 2020