Eclipse can create the necessary files and directory structure for you application.
You can also use palm-generate
The application structure is very similar to a Ruby on Rails application. Key files include:
At this point the application can run in the emulator or on the device.
Logging is a critical part of webOS development. To add logging, you must add a framework_config.json file to your application root and set a “logLevel”. Mojo.Log.Info(“message”) will write messages to the log.