Giter Club home page Giter Club logo

cordova-webos's Introduction

Cordova webOS

Cordova webOS is a skeleton webOS application, along with JavaScript wrapper libraries, which allow a developer to build an application for an LG webOS device using web technologies. This same code can be built for iPhone, BlackBerry, Symbian, and more to come ...

Pre-requisites

You should have the webOS TV SDK installed, which installs the ares-sdk-tools which are used for packaging and device installation. For a detailed step-by-step installation and setup guide, see here.

Project Management with Cordova webOS

This cordova-webos template tool includes 3 main commands to create and manage your cordova projects. Open a terminal, and navigate to the root Cordova webOS folder (where this readme.md file is located). If you don't see the node_modules folder, run npm install ., and now you all ready to use the commands:

  • bin/check_reqs - Checks to verify your system is configured for webOS build environment tools
  • bin/create <path> <appid> <appname> - Creates a new Cordova webOS project at the path you specify
  • bin/update <path> - Updates an existing project to current version of Cordova and cordova-webos utilities while leaving your code intact

Cordova Project Utilities

Included with each generated Cordova webOS project template are a set of useful tools.

  • cordova/build - Packages the application into a .ipk file (The options --debug and --no-minify will skip any minification process)
  • cordova/emulate - Starts up the webOS emulator bundled in the LG TV SDK or any other known webOS emulator
  • cordova/run - Installs and run the latest built webOS .ipk for your application on to any connected device or active emulator
  • cordova/version - Displays the version of cordova-webos that created your project template

Developing Cordova Apps

Just open the project in your favourite editor, build your web app, and run the appropriate make command indicated above. Edit appinfo.json to set your app version, etc.

Cordova-webOS fires a deviceready that guarantees all the Cordova APIs are in place. You can run your code at deviceready like so:

document.addEventListener('deviceready', function() {
    // do cool Cordova things
}, false);

The rest is just like any other webapp, with the benefit of Cordova's standardized APIs available to use.

Helpful Links

cordova-webos's People

Contributors

alunny avatar cmarcelk avatar davebalmer avatar hermwong avatar jaycanuck avatar stevengill avatar surajpindoria avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.