Book Image

Learning Firefox OS Application Development

By : Tanay Pant
Book Image

Learning Firefox OS Application Development

By: Tanay Pant

Overview of this book

With broad compatibility, the latest in web technologies, and powerful development tools, Firefox is a great choice for both web developers and end users. Firefox OS’s promotion of HTML5 as a first class citizen opens up the walled gardens of mobile application development for web developers. It is because of this initiative that no special SDKs are required to develop for Firefox OS. This book will help you excel in the art of developing applications for Firefox OS. It sequentially covers knowledge building, skills acquisition, and practical applications. Starting with an introduction to Firefox OS, usage of WebIDE, and then the application structure, this book introduces applications of increasing complexity with each chapter. An application that measures your tapping speed, a geolocation tagging application, and a photo editing and sharing application are the three applications that will be built from scratch. You will learn about topics such as the difference between various types of Firefox OS applications, application manifest files, offline apps, and designing principles for applications. You will also learn to test and submit the applications to the marketplace and finally maintain the repository of the Firefox OS application. By the end, you will be able to develop beautifully designed, fully-fledged, and rigorously tested Firefox OS applications and also share them at the Firefox OS Marketplace.
Table of Contents (17 chapters)
Learning Firefox OS Application Development
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The need to develop applications for Firefox OS


Firefox OS is one of the emerging platforms in the market, with devices having been released in a large number of countries. Developing applications for Firefox OS is very easy, especially for web developers, as Firefox OS treats HTML5 applications as first-class citizens, and hence there isn't any requirement to learn about using any unique platform-specific SDK.

The greatest thing about developing applications for Firefox OS is that the apps that you construct can run on a host of other devices that run Firefox as well, the goal being to make the Firefox OS apps to run in any web browser. For example, if the application that you build is responsive, then you will also be able to install and run it on a computer/laptop that runs Firefox. Isn't that great? Firefox is available for Windows, OS X, Linux, and Android, and very soon it will be available for iOS as well! This will allow you to distribute your applications to a wide number of people using different platforms. Also, unlike platforms such as iOS, you are not forced to publish your applications via the official marketplace; you can host your applications by yourself as well.

Mozilla has a huge community of developers and users, who are always willing to help others on platforms such as GitHub and IRC (https://wiki.mozilla.org/IRC). Firefox OS also has a great marketplace, which has grown over the years and offers great applications. Even the user interface of Firefox OS, which is known as Gaia, is built with the help of three components, namely HTML5, JavaScript, and CSS3. This makes developing applications for this platform easy for people who have experience in web development.

You can also port the applications that you build for Firefox OS to native applications for other platforms with the use of software such as PhoneGap, since Firefox OS applications are essentially web applications.