license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.

Getting Started with WebOS

This guide describes how to set up your development environment for Cordova and run a sample application. Note that Cordova used to be called PhoneGap, so some of the sites still use the old PhoneGap name.

Video Tutorials:

  1. Requirements

  • Windows, OS X, or Linux
  1. Install SDK + Cordova

  • Download and install Virtual Box
  • Download and install WebOS SDK
  • Download and install cygwin SDK (Windows only). Make sure you select make as it is not included by default
  • Download and extract the latest copy of Cordova. You will be working in the webOS directory.
  • Download and install XCode from the Mac App Store (OSX only)
  • Download and install Command Line Tools for XCode (OSX only); this can be done by going to Preferences → Downloads → Components and then click install on Command Line Tools
  1. Set up New Project

  • Open up terminal/cygwin and navigate to where you extracted your Cordova Download. Go into the webOS directory.
  1. Hello World

Edit phonegap/webOS/framework/www/index.html, adding <h1>Hello World</h1> after the <body> tag.

5A. Deploy to Simulator

  • Open up your Palm Emulator from your applications folder/start menu.
  • Type make in your terminal/cygwin while in the webOS directory.

5B. Deploy to Device

Done!

A more detailed version of this guide is available here.