Creating mobile apps the web developer way

Lorna Timbah
Lorna TimbahFull-time Tech Community Builder & Web Developer. WordPress, Google, and open source fangirl. at CoderDojo Kota Kinabalu
#devfest2015 #gdgkk
Creating Mobile Apps the
Web Developer Way
Lorna Timbah
@webgrrrl
Community Manager, GDGKK
#devfest2015 #gdgkk
Steps
1 - Install A Bunch of Software
2 - Set Up Your Web Project
3 - Compile Your Web Project
#devfest2015 #gdgkk
Step 1:
Install
1.Install Python
(this walk-through uses Python 3)
2.Install nodejs, npm, and JDK.
3.Set the environment paths for
Python, nodejs, npm, and JDK.
4.Install Android SDK and update
to at least Android 4.4 or higher
(API 19).
5.Install Bower via npm:
npm install -g bower
6.Install Cordova via npm:
npm install -g cordova
#devfest2015 #gdgkk
Step 1:
Install
1.Install Python
(this walk-through uses Python 3)
2.Install nodejs, npm, and JDK.
3.Set the environment paths for
Python, nodejs, npm, and JDK.
4.Install Android SDK and update
to at least Android 4.4 or higher
(API 19).
5.Install Bower via npm:
npm install -g bower
6.Install Cordova via npm:
npm install -g cordova
#devfest2015 #gdgkk
Step 2:
Set Up
1.Create a Cordova project
2.Go to the www folder of the
Cordova project
3.Initialize Bower
4.Download Polymer
5.Preview via your preferred web
server
#devfest2015 #gdgkk
Step 2:
Set Up
1.Create a Cordova project
2.Go to the www folder of the
Cordova project
3.Initialize Bower
4.Download Polymer
5.Preview via your preferred web
server
#devfest2015 #gdgkk
Step 2:
Set Up
1.Create a Cordova project:
cordova create [projectname]
[packagename] [foldername]
e.g. cordova create polymertest
com.webgrrrl.polymertest
polymertest
2.Go to the www folder of the
Cordova project
3.Initialize Bower
4.Download Polymer
5.Preview via your preferred web
server
#devfest2015 #gdgkk
Step 2:
Set Up
1.Create a Cordova project
2.Go to the www folder of the
Cordova project:
cd polymertest/www
3.Initialize Bower
4.Download Polymer
5.Preview via your preferred web
server
#devfest2015 #gdgkk
Step 2:
Set Up
1.Create a Cordova project
2.Go to the www folder of the
Cordova project
3.Initialize Bower:
bower init
Answer all questions, and
press Enter to leave blank.
4.Download Polymer
5.Preview via your preferred web
server
#devfest2015 #gdgkk
Step 2:
Set Up
2.4. Download Polymer
If using Polymer Starter Kit,
make sure to combine the
Bower JSON file contents
If downloading from Github:
bower install --save
Polymer/polymer
bower install --save
Polymer/webcomponentsjs
bower install --save
Polymer/core-elements
bower install --save
Polymer/paper-elements
#devfest2015 #gdgkk
Step 2:
Set Up
1.Create a Cordova project
2.Go to the www folder of the
Cordova project
3.Initialize Bower
4.Download Polymer
5.Preview via your preferred web
server:
Python 3:
python -m http.server
Python 2.7:
python -m SimpleHTTPServer
#devfest2015 #gdgkk
Step 3:
Compile
1.You'll need to be online so that
Cordova can install
dependencies where required
cordova add platform android
cordova build android
#devfest2015 #gdgkk
Errors
➔Already exist as an archive
◆Workaround: delete the archive
from the www folder
◆Source: Stack Overflow
#devfest2015 #gdgkk
Errors
➔Connection to server was
unsuccessful
◆Workaround: copy index.html as
main.html. Redirect index.html
using JavaSript to main.html
◆Source:
https://www.robertkehoe.com/2
013/01/fix-for-phonegap-
connection-to-server-was-
unsuccessful/
Creating mobile apps the web developer way
#devfest2015 #gdgkk
https://goo.gl/4Phciu
My original notes
#devfest2015 #gdgkk
http://goo.gl/forms/2zh1
JA10ZZ
Yes please
*Coming soon
to YouTube
1 of 18

Recommended

A painless self-hosted Git service: Gitea by
A painless self-hosted Git service: GiteaA painless self-hosted Git service: Gitea
A painless self-hosted Git service: GiteaBo-Yi Wu
15.4K views48 slides
GCM demo on Android by
GCM demo on AndroidGCM demo on Android
GCM demo on AndroidSeongSik Choi
405 views23 slides
Build your own PaaS using Kubernetes and Deis — GDG DevFest NL by
Build your own PaaS using Kubernetes and Deis — GDG DevFest NLBuild your own PaaS using Kubernetes and Deis — GDG DevFest NL
Build your own PaaS using Kubernetes and Deis — GDG DevFest NLJeroen Visser
719 views54 slides
Up GitLab Presentation 2015 by
Up GitLab Presentation 2015Up GitLab Presentation 2015
Up GitLab Presentation 2015Kumaran Balachandran
2.6K views18 slides
Introduction to development with Django web framework by
Introduction to development with Django web frameworkIntroduction to development with Django web framework
Introduction to development with Django web frameworkSammy Fung
191 views16 slides
Devoxx 2016 Using Jenkins, Gerrit and Spark for Continuous Delivery Analytics by
Devoxx 2016 Using Jenkins, Gerrit and Spark for Continuous Delivery AnalyticsDevoxx 2016 Using Jenkins, Gerrit and Spark for Continuous Delivery Analytics
Devoxx 2016 Using Jenkins, Gerrit and Spark for Continuous Delivery AnalyticsLuca Milanesio
1.3K views25 slides

More Related Content

What's hot

Marek Kuziel - Deploying Django with Buildout by
Marek Kuziel - Deploying Django with BuildoutMarek Kuziel - Deploying Django with Buildout
Marek Kuziel - Deploying Django with Buildoutmarekkuziel
1.1K views14 slides
Golang Microservices meetup by
Golang Microservices meetupGolang Microservices meetup
Golang Microservices meetupGirish Ramnani
347 views41 slides
iTHome Gopher Day 2017: What can Golang do? (Using project 52 as examples) by
iTHome Gopher Day 2017: What can Golang do?  (Using project 52 as examples)iTHome Gopher Day 2017: What can Golang do?  (Using project 52 as examples)
iTHome Gopher Day 2017: What can Golang do? (Using project 52 as examples)Evan Lin
3.7K views41 slides
用 Go 語言實戰 Push Notification 服務 by
用 Go 語言實戰 Push Notification 服務用 Go 語言實戰 Push Notification 服務
用 Go 語言實戰 Push Notification 服務Bo-Yi Wu
5K views96 slides
Git and Github workshop by
Git and Github workshopGit and Github workshop
Git and Github workshopOtto Kekäläinen
846 views51 slides
Speed up Continuous Delivery with BigData Analytics by
Speed up Continuous Delivery with BigData AnalyticsSpeed up Continuous Delivery with BigData Analytics
Speed up Continuous Delivery with BigData AnalyticsLuca Milanesio
1.1K views27 slides

What's hot(20)

Marek Kuziel - Deploying Django with Buildout by marekkuziel
Marek Kuziel - Deploying Django with BuildoutMarek Kuziel - Deploying Django with Buildout
Marek Kuziel - Deploying Django with Buildout
marekkuziel1.1K views
iTHome Gopher Day 2017: What can Golang do? (Using project 52 as examples) by Evan Lin
iTHome Gopher Day 2017: What can Golang do?  (Using project 52 as examples)iTHome Gopher Day 2017: What can Golang do?  (Using project 52 as examples)
iTHome Gopher Day 2017: What can Golang do? (Using project 52 as examples)
Evan Lin3.7K views
用 Go 語言實戰 Push Notification 服務 by Bo-Yi Wu
用 Go 語言實戰 Push Notification 服務用 Go 語言實戰 Push Notification 服務
用 Go 語言實戰 Push Notification 服務
Bo-Yi Wu5K views
Speed up Continuous Delivery with BigData Analytics by Luca Milanesio
Speed up Continuous Delivery with BigData AnalyticsSpeed up Continuous Delivery with BigData Analytics
Speed up Continuous Delivery with BigData Analytics
Luca Milanesio1.1K views
GitLab 8.5 Highlights and Step-by-step tutorial by Heather McNamee
GitLab 8.5 Highlights and Step-by-step tutorialGitLab 8.5 Highlights and Step-by-step tutorial
GitLab 8.5 Highlights and Step-by-step tutorial
Heather McNamee646 views
COSCUP 2016: Project 52 每週一個小專案來學習 Golang by Evan Lin
COSCUP 2016: Project 52 每週一個小專案來學習 GolangCOSCUP 2016: Project 52 每週一個小專案來學習 Golang
COSCUP 2016: Project 52 每週一個小專案來學習 Golang
Evan Lin6.7K views
Project52 by Evan Lin
Project52Project52
Project52
Evan Lin2.4K views
Git & version control crash course by Eslam Saeed
Git & version control crash course Git & version control crash course
Git & version control crash course
Eslam Saeed300 views
WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API... by Wasura Wattearachchi
WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API...WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API...
WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API...
GitLab 8.6 - Release Webcast by GitLab, Inc
GitLab 8.6 - Release Webcast GitLab 8.6 - Release Webcast
GitLab 8.6 - Release Webcast
GitLab, Inc2.6K views
Git in 10 minutes (WordCamp Europe 2017) by Borek Bernard
Git in 10 minutes (WordCamp Europe 2017)Git in 10 minutes (WordCamp Europe 2017)
Git in 10 minutes (WordCamp Europe 2017)
Borek Bernard2K views
Zero-Downtime Gerrit Code Review Upgrade by Luca Milanesio
Zero-Downtime Gerrit Code Review UpgradeZero-Downtime Gerrit Code Review Upgrade
Zero-Downtime Gerrit Code Review Upgrade
Luca Milanesio3.4K views
How Git and Gerrit make you more productive by Karsten Dambekalns
How Git and Gerrit make you more productiveHow Git and Gerrit make you more productive
How Git and Gerrit make you more productive
Karsten Dambekalns10.5K views
Gerrit jenkins-big data-continuous-delivery by Luca Milanesio
Gerrit jenkins-big data-continuous-deliveryGerrit jenkins-big data-continuous-delivery
Gerrit jenkins-big data-continuous-delivery
Luca Milanesio1.7K views
Gerrit Code Review with GitHub plugin by Luca Milanesio
Gerrit Code Review with GitHub pluginGerrit Code Review with GitHub plugin
Gerrit Code Review with GitHub plugin
Luca Milanesio15K views
Continuous integration with docker, buildbot and git by Adieu
Continuous integration with docker, buildbot and gitContinuous integration with docker, buildbot and git
Continuous integration with docker, buildbot and git
Adieu7.3K views
Berlin Apache Con EU Airflow Workshops by Jarek Potiuk
Berlin Apache Con EU Airflow WorkshopsBerlin Apache Con EU Airflow Workshops
Berlin Apache Con EU Airflow Workshops
Jarek Potiuk55 views
The Grails introduction workshop by GR8Conf
The Grails introduction workshopThe Grails introduction workshop
The Grails introduction workshop
GR8Conf774 views

Viewers also liked

CBMS4303 Topic 1 slides (Open University Malaysia) by
CBMS4303 Topic 1 slides (Open University Malaysia)CBMS4303 Topic 1 slides (Open University Malaysia)
CBMS4303 Topic 1 slides (Open University Malaysia)Lorna Timbah
506 views6 slides
CBMS4303 Topic 2 slides (Open University Malaysia) by
CBMS4303 Topic 2 slides (Open University Malaysia)CBMS4303 Topic 2 slides (Open University Malaysia)
CBMS4303 Topic 2 slides (Open University Malaysia)Lorna Timbah
842 views13 slides
CBMS4303 Topic 3 slides (Open University Malaysia) by
CBMS4303 Topic 3 slides (Open University Malaysia)CBMS4303 Topic 3 slides (Open University Malaysia)
CBMS4303 Topic 3 slides (Open University Malaysia)Lorna Timbah
694 views17 slides
CBMS4303 Topic 4 slides by
CBMS4303 Topic 4 slidesCBMS4303 Topic 4 slides
CBMS4303 Topic 4 slidesLorna Timbah
427 views7 slides
CBMS4303 Topic 2 Short Notes (Open University Malaysia) by
CBMS4303 Topic 2 Short Notes (Open University Malaysia)CBMS4303 Topic 2 Short Notes (Open University Malaysia)
CBMS4303 Topic 2 Short Notes (Open University Malaysia)Lorna Timbah
701 views11 slides
Re-experiencing learning by
Re-experiencing learningRe-experiencing learning
Re-experiencing learningLorna Timbah
391 views66 slides

Viewers also liked(9)

CBMS4303 Topic 1 slides (Open University Malaysia) by Lorna Timbah
CBMS4303 Topic 1 slides (Open University Malaysia)CBMS4303 Topic 1 slides (Open University Malaysia)
CBMS4303 Topic 1 slides (Open University Malaysia)
Lorna Timbah506 views
CBMS4303 Topic 2 slides (Open University Malaysia) by Lorna Timbah
CBMS4303 Topic 2 slides (Open University Malaysia)CBMS4303 Topic 2 slides (Open University Malaysia)
CBMS4303 Topic 2 slides (Open University Malaysia)
Lorna Timbah842 views
CBMS4303 Topic 3 slides (Open University Malaysia) by Lorna Timbah
CBMS4303 Topic 3 slides (Open University Malaysia)CBMS4303 Topic 3 slides (Open University Malaysia)
CBMS4303 Topic 3 slides (Open University Malaysia)
Lorna Timbah694 views
CBMS4303 Topic 4 slides by Lorna Timbah
CBMS4303 Topic 4 slidesCBMS4303 Topic 4 slides
CBMS4303 Topic 4 slides
Lorna Timbah427 views
CBMS4303 Topic 2 Short Notes (Open University Malaysia) by Lorna Timbah
CBMS4303 Topic 2 Short Notes (Open University Malaysia)CBMS4303 Topic 2 Short Notes (Open University Malaysia)
CBMS4303 Topic 2 Short Notes (Open University Malaysia)
Lorna Timbah701 views
Re-experiencing learning by Lorna Timbah
Re-experiencing learningRe-experiencing learning
Re-experiencing learning
Lorna Timbah391 views
CBMS4303 Topic 1 Short Notes (Open University Malaysia) by Lorna Timbah
CBMS4303 Topic 1 Short Notes (Open University Malaysia)CBMS4303 Topic 1 Short Notes (Open University Malaysia)
CBMS4303 Topic 1 Short Notes (Open University Malaysia)
Lorna Timbah1.7K views
08-Management Information System by Wahyu Wijanarko
08-Management Information System08-Management Information System
08-Management Information System
Wahyu Wijanarko16.6K views

Similar to Creating mobile apps the web developer way

App開發 - Web Developer的逆襲 by
App開發 - Web Developer的逆襲App開發 - Web Developer的逆襲
App開發 - Web Developer的逆襲益祥 許
1.6K views34 slides
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017 by
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017MarcinStachniuk
305 views73 slides
ENIB 2015-2016 - CAI Web - S01E01- La forge JavaScript by
ENIB 2015-2016 - CAI Web - S01E01- La forge JavaScriptENIB 2015-2016 - CAI Web - S01E01- La forge JavaScript
ENIB 2015-2016 - CAI Web - S01E01- La forge JavaScriptHoracio Gonzalez
585 views75 slides
Multi-stage Docker builds to make building easy! by
Multi-stage Docker builds to make building easy!Multi-stage Docker builds to make building easy!
Multi-stage Docker builds to make building easy!Milindu Sanoj Kumarage
47 views14 slides
PhoneGap Lab by
PhoneGap LabPhoneGap Lab
PhoneGap LabLeo Nguyen
501 views17 slides
ENIB 2015 2016 - CAI Web S02E03- Forge JS 1/4 - La forge JavaScript by
ENIB 2015 2016 - CAI Web S02E03- Forge JS 1/4 - La forge JavaScriptENIB 2015 2016 - CAI Web S02E03- Forge JS 1/4 - La forge JavaScript
ENIB 2015 2016 - CAI Web S02E03- Forge JS 1/4 - La forge JavaScriptHoracio Gonzalez
619 views74 slides

Similar to Creating mobile apps the web developer way(20)

App開發 - Web Developer的逆襲 by 益祥 許
App開發 - Web Developer的逆襲App開發 - Web Developer的逆襲
App開發 - Web Developer的逆襲
益祥 許1.6K views
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017 by MarcinStachniuk
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
MarcinStachniuk305 views
ENIB 2015-2016 - CAI Web - S01E01- La forge JavaScript by Horacio Gonzalez
ENIB 2015-2016 - CAI Web - S01E01- La forge JavaScriptENIB 2015-2016 - CAI Web - S01E01- La forge JavaScript
ENIB 2015-2016 - CAI Web - S01E01- La forge JavaScript
Horacio Gonzalez585 views
PhoneGap Lab by Leo Nguyen
PhoneGap LabPhoneGap Lab
PhoneGap Lab
Leo Nguyen501 views
ENIB 2015 2016 - CAI Web S02E03- Forge JS 1/4 - La forge JavaScript by Horacio Gonzalez
ENIB 2015 2016 - CAI Web S02E03- Forge JS 1/4 - La forge JavaScriptENIB 2015 2016 - CAI Web S02E03- Forge JS 1/4 - La forge JavaScript
ENIB 2015 2016 - CAI Web S02E03- Forge JS 1/4 - La forge JavaScript
Horacio Gonzalez619 views
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand by Troublemaker Khunpech
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandCI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
Getting your Hooks into Cordova by Gavin Pickin
Getting your Hooks into CordovaGetting your Hooks into Cordova
Getting your Hooks into Cordova
Gavin Pickin300 views
Getting Your Hooks Into Cordova by devObjective
Getting Your Hooks Into CordovaGetting Your Hooks Into Cordova
Getting Your Hooks Into Cordova
devObjective285 views
Angular Part 3 (Basic knowledge) by Rohit Singh
Angular Part 3 (Basic knowledge)Angular Part 3 (Basic knowledge)
Angular Part 3 (Basic knowledge)
Rohit Singh54 views
Building a Django App with Heroku by explorro
Building a Django App with HerokuBuilding a Django App with Heroku
Building a Django App with Heroku
explorro289 views
Workshop: Introduction to Web Components & Polymer by John Riviello
Workshop: Introduction to Web Components & Polymer Workshop: Introduction to Web Components & Polymer
Workshop: Introduction to Web Components & Polymer
John Riviello640 views
GDG Kraków - Intro to front-end automation using bower.js & grunt.js by Dominik Prokop
GDG Kraków - Intro to front-end automation using bower.js & grunt.jsGDG Kraków - Intro to front-end automation using bower.js & grunt.js
GDG Kraków - Intro to front-end automation using bower.js & grunt.js
Dominik Prokop1.2K views
Build your own CI/CD with docker, net core and azure by Pau López
Build your own CI/CD with docker, net core and azureBuild your own CI/CD with docker, net core and azure
Build your own CI/CD with docker, net core and azure
Pau López672 views
GDGSCL - Docker a jeho provoz v Heroku a AWS by Ladislav Prskavec
GDGSCL - Docker a jeho provoz v Heroku a AWSGDGSCL - Docker a jeho provoz v Heroku a AWS
GDGSCL - Docker a jeho provoz v Heroku a AWS
Ladislav Prskavec2.4K views
Introduction to using Grunt & Bower with WordPress theme development by James Bundey
Introduction to using Grunt & Bower with WordPress theme developmentIntroduction to using Grunt & Bower with WordPress theme development
Introduction to using Grunt & Bower with WordPress theme development
James Bundey3K views
Cordova Tutorial by Jacky Chen
Cordova TutorialCordova Tutorial
Cordova Tutorial
Jacky Chen206 views
CodeIgniter For Project : Workshop 001 - Install Docker and CodeIgniter by Weerayut Hongsa
CodeIgniter For Project : Workshop 001 - Install Docker and CodeIgniterCodeIgniter For Project : Workshop 001 - Install Docker and CodeIgniter
CodeIgniter For Project : Workshop 001 - Install Docker and CodeIgniter
Weerayut Hongsa3.4K views

Recently uploaded

Transcript: Redefining the book supply chain: A glimpse into the future - Tec... by
Transcript: Redefining the book supply chain: A glimpse into the future - Tec...Transcript: Redefining the book supply chain: A glimpse into the future - Tec...
Transcript: Redefining the book supply chain: A glimpse into the future - Tec...BookNet Canada
41 views16 slides
Business Analyst Series 2023 - Week 4 Session 7 by
Business Analyst Series 2023 -  Week 4 Session 7Business Analyst Series 2023 -  Week 4 Session 7
Business Analyst Series 2023 - Week 4 Session 7DianaGray10
139 views31 slides
"Package management in monorepos", Zoltan Kochan by
"Package management in monorepos", Zoltan Kochan"Package management in monorepos", Zoltan Kochan
"Package management in monorepos", Zoltan KochanFwdays
33 views18 slides
Qualifying SaaS, IaaS.pptx by
Qualifying SaaS, IaaS.pptxQualifying SaaS, IaaS.pptx
Qualifying SaaS, IaaS.pptxSachin Bhandari
1K views8 slides
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti... by
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...ShapeBlue
139 views29 slides
"Running students' code in isolation. The hard way", Yurii Holiuk by
"Running students' code in isolation. The hard way", Yurii Holiuk "Running students' code in isolation. The hard way", Yurii Holiuk
"Running students' code in isolation. The hard way", Yurii Holiuk Fwdays
36 views34 slides

Recently uploaded(20)

Transcript: Redefining the book supply chain: A glimpse into the future - Tec... by BookNet Canada
Transcript: Redefining the book supply chain: A glimpse into the future - Tec...Transcript: Redefining the book supply chain: A glimpse into the future - Tec...
Transcript: Redefining the book supply chain: A glimpse into the future - Tec...
BookNet Canada41 views
Business Analyst Series 2023 - Week 4 Session 7 by DianaGray10
Business Analyst Series 2023 -  Week 4 Session 7Business Analyst Series 2023 -  Week 4 Session 7
Business Analyst Series 2023 - Week 4 Session 7
DianaGray10139 views
"Package management in monorepos", Zoltan Kochan by Fwdays
"Package management in monorepos", Zoltan Kochan"Package management in monorepos", Zoltan Kochan
"Package management in monorepos", Zoltan Kochan
Fwdays33 views
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti... by ShapeBlue
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
ShapeBlue139 views
"Running students' code in isolation. The hard way", Yurii Holiuk by Fwdays
"Running students' code in isolation. The hard way", Yurii Holiuk "Running students' code in isolation. The hard way", Yurii Holiuk
"Running students' code in isolation. The hard way", Yurii Holiuk
Fwdays36 views
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And... by ShapeBlue
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
ShapeBlue106 views
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... by ShapeBlue
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
ShapeBlue194 views
Optimizing Communication to Optimize Human Behavior - LCBM by Yaman Kumar
Optimizing Communication to Optimize Human Behavior - LCBMOptimizing Communication to Optimize Human Behavior - LCBM
Optimizing Communication to Optimize Human Behavior - LCBM
Yaman Kumar38 views
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda... by ShapeBlue
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
ShapeBlue161 views
Initiating and Advancing Your Strategic GIS Governance Strategy by Safe Software
Initiating and Advancing Your Strategic GIS Governance StrategyInitiating and Advancing Your Strategic GIS Governance Strategy
Initiating and Advancing Your Strategic GIS Governance Strategy
Safe Software176 views
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R... by ShapeBlue
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
ShapeBlue173 views
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or... by ShapeBlue
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
ShapeBlue198 views
LLMs in Production: Tooling, Process, and Team Structure by Aggregage
LLMs in Production: Tooling, Process, and Team StructureLLMs in Production: Tooling, Process, and Team Structure
LLMs in Production: Tooling, Process, and Team Structure
Aggregage42 views
The Power of Heat Decarbonisation Plans in the Built Environment by IES VE
The Power of Heat Decarbonisation Plans in the Built EnvironmentThe Power of Heat Decarbonisation Plans in the Built Environment
The Power of Heat Decarbonisation Plans in the Built Environment
IES VE79 views
State of the Union - Rohit Yadav - Apache CloudStack by ShapeBlue
State of the Union - Rohit Yadav - Apache CloudStackState of the Union - Rohit Yadav - Apache CloudStack
State of the Union - Rohit Yadav - Apache CloudStack
ShapeBlue297 views
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue by ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueWhat’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
ShapeBlue263 views
"Surviving highload with Node.js", Andrii Shumada by Fwdays
"Surviving highload with Node.js", Andrii Shumada "Surviving highload with Node.js", Andrii Shumada
"Surviving highload with Node.js", Andrii Shumada
Fwdays56 views

Creating mobile apps the web developer way

  • 1. #devfest2015 #gdgkk Creating Mobile Apps the Web Developer Way Lorna Timbah @webgrrrl Community Manager, GDGKK
  • 2. #devfest2015 #gdgkk Steps 1 - Install A Bunch of Software 2 - Set Up Your Web Project 3 - Compile Your Web Project
  • 3. #devfest2015 #gdgkk Step 1: Install 1.Install Python (this walk-through uses Python 3) 2.Install nodejs, npm, and JDK. 3.Set the environment paths for Python, nodejs, npm, and JDK. 4.Install Android SDK and update to at least Android 4.4 or higher (API 19). 5.Install Bower via npm: npm install -g bower 6.Install Cordova via npm: npm install -g cordova
  • 4. #devfest2015 #gdgkk Step 1: Install 1.Install Python (this walk-through uses Python 3) 2.Install nodejs, npm, and JDK. 3.Set the environment paths for Python, nodejs, npm, and JDK. 4.Install Android SDK and update to at least Android 4.4 or higher (API 19). 5.Install Bower via npm: npm install -g bower 6.Install Cordova via npm: npm install -g cordova
  • 5. #devfest2015 #gdgkk Step 2: Set Up 1.Create a Cordova project 2.Go to the www folder of the Cordova project 3.Initialize Bower 4.Download Polymer 5.Preview via your preferred web server
  • 6. #devfest2015 #gdgkk Step 2: Set Up 1.Create a Cordova project 2.Go to the www folder of the Cordova project 3.Initialize Bower 4.Download Polymer 5.Preview via your preferred web server
  • 7. #devfest2015 #gdgkk Step 2: Set Up 1.Create a Cordova project: cordova create [projectname] [packagename] [foldername] e.g. cordova create polymertest com.webgrrrl.polymertest polymertest 2.Go to the www folder of the Cordova project 3.Initialize Bower 4.Download Polymer 5.Preview via your preferred web server
  • 8. #devfest2015 #gdgkk Step 2: Set Up 1.Create a Cordova project 2.Go to the www folder of the Cordova project: cd polymertest/www 3.Initialize Bower 4.Download Polymer 5.Preview via your preferred web server
  • 9. #devfest2015 #gdgkk Step 2: Set Up 1.Create a Cordova project 2.Go to the www folder of the Cordova project 3.Initialize Bower: bower init Answer all questions, and press Enter to leave blank. 4.Download Polymer 5.Preview via your preferred web server
  • 10. #devfest2015 #gdgkk Step 2: Set Up 2.4. Download Polymer If using Polymer Starter Kit, make sure to combine the Bower JSON file contents If downloading from Github: bower install --save Polymer/polymer bower install --save Polymer/webcomponentsjs bower install --save Polymer/core-elements bower install --save Polymer/paper-elements
  • 11. #devfest2015 #gdgkk Step 2: Set Up 1.Create a Cordova project 2.Go to the www folder of the Cordova project 3.Initialize Bower 4.Download Polymer 5.Preview via your preferred web server: Python 3: python -m http.server Python 2.7: python -m SimpleHTTPServer
  • 12. #devfest2015 #gdgkk Step 3: Compile 1.You'll need to be online so that Cordova can install dependencies where required cordova add platform android cordova build android
  • 13. #devfest2015 #gdgkk Errors ➔Already exist as an archive ◆Workaround: delete the archive from the www folder ◆Source: Stack Overflow
  • 14. #devfest2015 #gdgkk Errors ➔Connection to server was unsuccessful ◆Workaround: copy index.html as main.html. Redirect index.html using JavaSript to main.html ◆Source: https://www.robertkehoe.com/2 013/01/fix-for-phonegap- connection-to-server-was- unsuccessful/

Editor's Notes

  1. There are multitude of ways for us to move over from web development to mobile development. A majority of it requires us to re-learn a new language, such as Java (shivers). But what if I tell you that there is a way to use what skills you already have as a web developer, and transition rather seamlessly into a mobile developer, without learning different programming languages and without changing too much the way you’ve done apps on the web? This walkthrough shows you how to prepare your web dev environment so you can compile them into mobile apps. If you have a good understanding of using the AMP stack (Apache, MySQL, PHP), then you will be comfortable following these steps. To be honest, there are simpler ways to go about doing this. However, too many shortcuts may lead you to not understand the reasoning behind why we need to compile, what works behind the scenes, and so on. PhoneGap and Ionic are two such easy tools. You know what Apache does, what MySQL does, and what PHP does, right? That is why you chose an AMP stack like XAMPP or WAMP or LAMPP. I’m going at this with the same reasoning, too. Once you understand what Cordova does, what Android SDK does, what nodejs does, and so on and so forth, you should find it easier to identify the kind of full/easy package out there that would fit your need. What you must understand about mobile development is that you must have at least three minimum skills -- HTML5, CSS, and JavaScript. Those are all you need to make your first ever app. More importantly, your web app will be able to run offline, just like a native app.
  2. These are optional steps. Do these steps if you plan to use Polymer to build your web app.
  3. These are optional steps. Do these steps if you plan to use Polymer to build your web app.
  4. These are optional steps. Do these steps if you plan to use Polymer to build your web app.
  5. These are optional steps. Do these steps if you plan to use Polymer to build your web app.
  6. Here is my simpler one-page walkthrough of the same steps.