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

Hosting apps on RHCloud via Git


Let's now learn to deploy our installable and offline application to the cloud with the help of Git. We will use Red Hat's OpenShift to deploy our Firefox OS application. Go to https://www.openshift.com and sign up for a free account. You will be asked to write a domain name there; you can write anything you like. After signing up, click on Add Application. From there, you can select PHP 5.4. It will ask you for a public URL, which you can fill in. You can leave rest of the details as it is and click on Create Application. Doing so will bring up a set of instructions on your screen. Now, instead of continuing with the next steps from my machine, I will showcase how to continue with the help of a cloud-based development environment. We will use Cloud 9 IDE for this purpose. Simply go to https://c9.io and register there. Click on Create a new Workspace, select Custom workspace, and give it a name.

We are making use of the online development environment to save...