You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by gt...@apache.org on 2013/01/29 03:49:07 UTC

[14/17] git commit: updated docs

updated docs


Project: http://git-wip-us.apache.org/repos/asf/cordova-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-labs/commit/ae7bbd73
Tree: http://git-wip-us.apache.org/repos/asf/cordova-labs/tree/ae7bbd73
Diff: http://git-wip-us.apache.org/repos/asf/cordova-labs/diff/ae7bbd73

Branch: refs/heads/cordova-firefoxos
Commit: ae7bbd73dbf1e0b4776b7c2e0980e2a5d9acd0d0
Parents: 2180d72
Author: Gord Tanner <gt...@gmail.com>
Authored: Sun Jan 27 20:43:18 2013 -0500
Committer: Gord Tanner <gt...@gmail.com>
Committed: Sun Jan 27 20:43:18 2013 -0500

----------------------------------------------------------------------
 README.md |   74 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 71 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/ae7bbd73/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 9199604..0b9c649 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,72 @@
-cordova-b2g
-===========
+Cordova FirefoxOS (Boot 2 Gecko)
+==============================
 
-Cordova for Boot 2 Gecko
\ No newline at end of file
+Directory Structure
+-------------------
+
+    framework/ ... Any framework (non app specific code)
+    javascript/ .. Cordova JavaScript (built from the cordova-js project)
+    bin/ ......... Scripts for project creation
+
+Introduction
+------------
+
+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.
+
+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.
+
+
+Getting Started
+===============
+
+A lot of good documentation is available on the [Mozilla Developer Network](https://developer.mozilla.org/en/docs/Mozilla/Firefox_OS)
+
+A simulator (runs as a Firefox plugin) is availble [here](http://people.mozilla.org/~myk/r2d2b2g/)
+
+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 https://github.com/gtanner/cordova-b2g.git
+
+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:
+
+    ./bin/create
+    cd example
+    ./cordova/debug
+
+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.