Phonegap (or respectively Cordova) is really neat, when you wanna build hybrid mobile apps.
The biggest problem with it is the setup and usage - it takes pretty long until you can deploy your first application to a real device.
Gladly, there's the Cordova CLI wrapper in node.js!
$ npm install -g cordova
plus the SDK(s) for the platform(s) you want the app to be built on and you can create a new project for, let's say Android and iOS by running
$ cordova create DemoApp && cd DemoApp $ cordova platform add ios android
to build your app, you just run
$ cordova build
Note: On iOS I had to manually build the Xcode project after this. Thanks, Apple.
And you find the results in
You can also run the emulator / simulator with
$ cordova emulate
or serve the
www folder locally (via HTTP) with
$ cordova serve
That speeds up the setup process of new projects enormously.