Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
updated docs
  • Loading branch information
gtanner authored and hermwong committed Mar 13, 2013
1 parent 8d33872 commit 09458ca6a5e4d19a9d0a93e3b3310c9b08cc8c03
Showing 1 changed file with 64 additions and 14 deletions.
@@ -1,22 +1,72 @@
# Cordova Laboratory
Cordova FirefoxOS (Boot 2 Gecko)

> Caution: Safety Goggles are Recommended!
Directory Structure

## Purpose
framework/ ... Any framework (non app specific code)
javascript/ .. Cordova JavaScript (built from the cordova-js project)
bin/ ......... Scripts for project creation

The purpose of this repo is for experimental code. Examples include demo apps,
native api explorations, or anything really that does not fit in an existing Cordova platform.

## Project Organization
Firefox OS is an open source operating system for smartphones and tablet computers being developed by Mozilla. It is designed to allow HTML5 applications to integrate directly with the device's hardware using JavaScript.

> Everyone works on a branch
cordova-b2g allows developers to use the cross platform APIs in Cordova to target the Firefox OS. Most APIs are just proxied to the matching Firefox OS API calls.

`master` branch should *never* have content.

Each project should create a separate branch to work on. There are major benefits
to this practice:
Getting Started

- Each project has an isolate git history, which allows for easy migration to
a new git repository;
- Working directory is not polluted with the files of other projects.
- Projects will not step on each others toes.
A lot of good documentation is available on the [Mozilla Developer Network](

A simulator (runs as a Firefox plugin) is availble [here](

Installing the cordova-b2g framework

Cloning the cordova-b2g repository always provides you with the latest (EDGE) version of the Cordova code. To clone the repository, do the following:

$ cd ~/some/path
$ git clone

Cordova B2G Developer Tools

The Cordova developer tooling is split between general tooling and project level tooling. Currently the tooling will only work on OSX or Linux.

### General Commands

./bin/create [path appname] ...... creates a sample app with the specified path

#### Running the Example Project

Create the example project and build it to the first device:

cd example

This will start up a web server on port 8008 and ask you to navigate your
phone or simulator to http://localhost:8008/install.html. This is really only
needed to install like you would from an app store.

You may also use the simluator and Add the www directory to it (point at the manifest.webapp) in that folder. This will
allow you to refresh the app easier when developing.

#### Creating a new Cordova B2G

./bin/create ~/Desktop/myapp MyApp

### Project Commands

These commands live in a generated Cordova B2G project.

./cordova/run ............................ install to a connected device or simulator
./cordova/build .......................... build project, but do not deploy to simulator or device

There is currently no way to automate installing to the simulator or device so
we are currently just hosting an install.html file on the webserver hosting the app
that you can point your device/simulator to and install the app. Once more commandline
tools become available this will probably change.

0 comments on commit 09458ca

Please sign in to comment.