2. About Us
• Since 2009 we provide mobile solutions and web
development service to our customers
• Supported by Hong Kong Gov between 2010 – 2013
• Hand on exp on NFC, Audio, Wifi data transfer
3. Overview
• Intro – Cloud
• Cloud server hosting
• Server architecture, LAMP
• Intro – Mobile app development
• Native vs HTML5
• Intro – Web development
• PHP, JSP (Java), HTML, Ajax, jQuery
• Data exchange using JSON / XML
• Case Study – iFarm, Smart Hydroponics device
• How we can get started
• Resource needed
• Points to Note
• Q&A
5. Cloud server hosting (IAAS)
• Renting virtual server space rather than renting or
purchasing physical servers.
• Paid for by the computing hours depending on the
capacity required at any particular time
• Popular service providers in US: Amazon, Rackspace,
SoftLayer (under IBM)
6. Advantages
• No need to maintain server such as harddisk failure,
hardware upgrade
• Easily Scalable, capacity can be easily upgraded
• Flexible cost & Low initial setup time
7. Server Architecture
• Support LAMP => Linux, Apache, MySQL, PHP
• Common toolset for Web App Development
• Clustering web server & database to prevent single point
of failure
9. INTRO – MOBILE APP
DEVELOPMENT
iOS app vs Android app development
10. Native vs HTML5
• Native SDK for iOS and Android
Fast performance
Easily Access hardware features like GPS, NFC, Camera, etc.
X Platform dependent => high development cost
11. Native vs HTML5
• HTML5 (Also known as Hybrid)
• Mix native code with HTML5 code
Platform independent => “Develop once, Deploy many”
Flat learning curve
X Relative Slower
More suitable for information app
13. Development Framework
•
Framework:
•
•
•
Server side language: PHP, JSP (Java)
Client side: HTML, Ajax, jQuery, javascript, etc
Hosted in Apache HTTP server
• Responsive Web Design
• Support desktop, mobile browsers at once
• Adapt to different browsers automatically
• We can try now
14. How we make Data Exchange?
• Via HTTP request & response, e.g.
http://202.82.25.16/abc/login.jsp?usrID=maggie&usrPwd=t
est
• Submit requests to server to get response
• Server return JSON / XML response, common data
exchange method
17. Case Study - iFarm
• Smart device for hydroponics
• Hardware developed by our customer, we develop mobile
app
• Mobile apps can read farming data in real-time like
temperature, humidity, pH, etc
19. How we get started?
1.
Customer provides us with a hardware prototype
2.
The prototype is embedded in Linux, running http
server
3.
A web app is hosted in the http server. The web app
can be accessed with browser in a local network, say
http://ifarm.local
4.
After login we can check the data read from sensor
5.
The data can be fetched by JSON when we can submit
a request to this server.
20. Resource needed for mobile apps
development
• Reference mobile app & the hardware
• API instructions & documentation
• Local Web App for testing
• Of course your functional requirement
21. Points to Note
• The setup procedure need to be well defined, e.g. how to
switch to the user Wifi network, how to do pairing between
smart devices and mobile app
• OTA firmware update is needed.
• How to resolve virtual IP from the domain
• The response time may be slow