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
2. 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 the latest copy of Cordova and extract its contents. We will be working with 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 XCode's Preferences -> Downloads -> Components and then click install on Command Line Tools
3. Setup New Project
- Open up terminal/cygwin and navigate to where you extracted your Cordova Download. Go into the webOS directory.
4. Hello World
In phonegap/webOS/framework/www, open up index.html with your favourite editor. After the body tag add <h1>Hello World</h1>
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
- Make sure your device is in Developer Mode and plug it in.
- Type
make
in your terminal/cygwin while in the webOS directory.
Done!
You can also checkout more detailed version of this guide here.